Ticket #1841 (closed defect: wontfix)

Opened 5 months ago

Last modified 3 months ago

Buttons inside td-element look stretched in IE6

Reported by: Marko Gronroos Owned by: Marc Englund
Priority: minor Milestone: User Interface Library 5.3.0 RC
Component: gwt-adapter-client Version: 5.2.4
Keywords: Cc:
Known Issue description:
Hours estimate: Deadline (dd.mm.yyyy):
Known Issue version (since): Known Issue title:
Hours done: Depends to:
Affects documentation: no
Known Issue workaround:
Affects release notes: no Contract:

Description

The buttons look a bit stretched in IE6 and their dark border isn't too pretty.

Attachments

buttons-20080622-1.jpg (157.8 kB) - added by Marko Gronroos 5 months ago.
Image showing stretched buttons
Picture 1.png (39.4 kB) - added by Joonas Lehtinen 4 months ago.
Screenshot-1.png (1.7 kB) - added by Marc Englund 4 months ago.
Windows real native vs. themed button

Change History

Changed 5 months ago by Marko Gronroos

Image showing stretched buttons

Changed 5 months ago by Jouni Koivuviita

  • status changed from new to closed
  • resolution set to wontfix

This is a known issue with IE/XP. Native buttons (using the button element) with long text will always look like this, we can't fix them. Custom themes can override the native look of the buttons, but we won't be fixing these to the default theme.

Changed 5 months ago by Joonas Lehtinen

  • status changed from closed to reopened
  • resolution deleted
  • summary changed from Buttons look stretched in IE6 to Buttons in feature browser windowing look stretched in IE6

Proposed fix: change those particular buttons to links. Magi, could you do this?

Changed 5 months ago by Joonas Lehtinen

  • status changed from reopened to assigned

Changed 5 months ago by Marc Englund

  • status changed from assigned to closed
  • resolution set to fixed

"Fixed" in [4941] (buttons changed to link-style)

Changed 5 months ago by Mauno Haukila

  • summary changed from Buttons in feature browser windowing look stretched in IE6 to Buttons inside td-element look stretched in IE6

Button strethes only if it's inside td-element.
It can be fixed by setting .

* html .i-button {
  width:1px;
  overflow: visible;
}

Changed 5 months ago by Joonas Lehtinen

  • status changed from closed to reopened
  • resolution deleted
  • milestone changed from User Interface Library 5.3.0 RC1 to User Interface Library 5 stable branch backlog

Reopening to ensure that Maunos fix will get applied

Changed 5 months ago by Mauno Haukila

I didn't meant it should be fixed to toolkit. I just commented so that this hack can be found with search.
Note that this fixes ie6 only. Ie7 has same bug but this fix can make it worse (thus * html).
It depends on layout, example it broke all Vertical-OrderedLayouts? where Buttons where right_aligned (ie7 only). Buttons rendered too far so I had to add ie7 specific hack to that situation ;) (position: relative, left: -50px).
Ie8beta1 works without this hack (and breakes if applied).

Changed 5 months ago by Joonas Lehtinen

We could inject

 width:1px;
  overflow: visible;

Directly to style-attribute of button-element in javascript only in IE6. Would this be the correct way to go?

Changed 5 months ago by Marc Englund

  • owner changed from Marko Gronroos to Marc Englund
  • status changed from reopened to accepted

Changed 5 months ago by Mauno Haukila

No need to inject (* html works only with ie6).
IE7 is still affected to the same bug, it needs "overflow:visible" to be partially fixed. It still makes containing td-element too big:

Changed 5 months ago by Marc Englund

Sort of fixed in [5012] (MAunos last comment, "makes containing td-element too big" not fixed)

/* fixes streched buttons in IE6 */
* html .i-button {
	overflow: visible;
	padding-left: 10px;
	padding-right: 10px;
}
/* fixes streched buttons in IE7 */
*+html .i-button {
	overflow: visible;
	padding-left: 10px;
	padding-right: 10px;
}

Changed 5 months ago by Joonas Lehtinen

Did you test this on IE8-beta1?

Also, please test with [5013] that makes quite a few changes to button.css

Changed 5 months ago by Marc Englund

Clarifying current state of this:

IE6: ok IE7: button _looks_ ok, but reserves too much space; no known fix for this yet

Not tested with any beta browsers.

Changed 5 months ago by Marc Englund

More: known fixes only work in quirksmode, like this one: http://jehiah.cz/sandbox/button.html

Changed 5 months ago by Marc Englund

  • status changed from accepted to closed
  • resolution set to fixed

Fixed in [5020] (!)

Changed 4 months ago by Joonas Lehtinen

  • status changed from closed to reopened
  • resolution deleted

Reopening as the buttons still looks horrible in IE6/IE7. See screenshot. Test with #1921 test app.

Changed 4 months ago by Joonas Lehtinen

Changed 4 months ago by Marc Englund

We do not currently have a fix for this; a workaround would be to make IE use the unthemed windows buttons, but since other controls (e.g NativeSelect?) are using the themed variant, the UI would be somewhat inconsistent.

Also note that this is only a problem if you make huge buttons.

Changed 4 months ago by Marc Englund

Windows real native vs. themed button

Changed 4 months ago by Joonas Lehtinen

  • status changed from reopened to closed
  • resolution set to wontfix

Then - no can do. Most probably there is no need for button.setSizeFull() anyways.

Changed 3 months ago by Joonas Lehtinen

  • milestone changed from User Interface Library 5 stable branch backlog to User Interface Library 5.3.0 RC
Note: See TracTickets for help on using tickets.