3.2.0

v2 - quirksmode or standards compliance mode?

I've noticed that specifying

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

as doctype at the top of the examples throws CSS formatting problems in IE6.

I've seen elsewhere mention that v2 would support standards compliance mode. Is this still to come? (or have I got this completely wrong?!)

Will
Will
October 10,
2.0 beta1 should already work in standards compliance (strict) mode in IE6 (except for input box and combo box which are still broken). If you see problems with grid or other controls (except AW.UI.Input and AW.UI.Combo) please let me know.

Dialog box example will not work because all control sizes (hardcoded in CSS) have to be changed to include padding and borders (-4px height and -8px width).

Also note that standards compliance (strict) mode will be available in Professional edition only.
Alex (ActiveWidgets)
October 10,
Alex

Thanks for that.
I think the button control may not be quite right.

In the grid.htm example, I added a button in the second header line in one of the columns as follows:
....
obj.setHeaderText(myHeaders);

button = new AW.UI.Button
button.setControlText("Go");
button.setId("myButton");
obj.setHeaderText(["Sub 0", "Sub 1", "Sub 2", "Sub 3", button], 1);
obj.setHeaderHeight(30, 1);
....
with a style set as

#myButton {width: 10px}

and the button does not display correctly (IE6).

I haven;t tried all the new UI controls in this way yet.

Will
Will
October 10,
What is wrong with the display? Give us some details. I see for one, that 10px is not nearly enough room to display the word "Go". Set the width to something like 75 and see if it looks better. And how are you injecting the button into the grid? Show us the code you use to do it, the problem might be there.
Jim Hunter
October 11,
I have to eat humble pie....

I tried this again i.e. inserting a button control in a "clean" version of grid.htm (one of the quickref examples) in the same way as in my previous post, and the button displays just fine. 10px seems more than adequate width for the word "go".

Apologies.
Will

Will
October 11,
I am glad it's working. The button must be expanding to show all of your text because 10px is not enough room to draw a button with borders approximately 5px wide and to allow buffer between the border and the text and the display the word "Go" (Your original word, which in itself takes about 12px to display, 5px for each letter and 2px space between them). When you set the width of the button via CSS, you are setting the overall width, not the space allowed for the text. And if you want to test my theory of the button expanding to to the space needed, set your width to 1px and see if it still works. Surely you can't think that 1px is more then adequate to display the word "Go". What you are going to find is that the button size will not change until you get to 32px, then it gets larger by 1px.
Jim Hunter
October 12,

This topic is archived.

See also:


Back to support forum