#4623 closed bug (fixed)
CSS: ui-helper-hidden-accessible affects page layout
Reported by: | kbwood | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8.7 |
Component: | ui.css-framework | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Ticket #4423 highlighted a problem with the ui-helper-hidden-accessible class and its application to the datepicker in pages with the body styled with direction: rtl. I can only reproduce this in IE7. The problem is the ui-helper-hidden-accessible class initially applied to the popup datepicker division. This positions it very far to the left, which effectively increases the page width and causes the location of the input field (jQuery.offset()) to be read as very far to the right. The datepicker is then shown at that position, i.e. off the screen. Thereafter the positioning undoes the initial setting and the datepicker shows normally. This needs to be fixed in the ThemeRoller core CSS. Rather than positioning to the left it could position above the page and not affect the horizontal rendering.
Change History (10)
comment:1 Changed 14 years ago by
Milestone: | TBD → 1.8 |
---|
comment:2 Changed 14 years ago by
comment:4 Changed 13 years ago by
I can confirm this problem in ie7,8
As suggested above, changing:
.ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
to:
.ui-helper-hidden-accessible { position: absolute; top: -99999999px; }
fixes this problem
comment:5 Changed 12 years ago by
Summary: | ui-helper-hidden-accessible problems in right-to-left pages in IE7 → CSS: ui-helper-hidden-accessible affects page layout |
---|
comment:6 Changed 12 years ago by
A cleaner solution from html5boilerplate (tested, working on all browser):
position:absolute; clip: rect(0,0,0,0);
comment:7 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
CSS: Rewrote .ui-helper-hidden-accessible base on HTML5 Boilerplate. Fixes #4623 - CSS: ui-helper-hidden-accessible affects page layout.
Changeset: a9d854967f0175b4c4b8a48c76a71d0fd1028680
comment:8 Changed 12 years ago by
Milestone: | 1.9 → 1.8.7 |
---|
comment:9 Changed 12 years ago by
For what it's worth the fix does not work on Chrome for Mac (but it works in Safari and Firefox on Mac). I had to add negatives for top and left to force Chrome not show scroll bars in one of my "overflow:auto;" divs that contained hidden items.
comment:10 Changed 12 years ago by
Works fine for me: http://jsbin.com/uzaxo4/edit I don't get any scrollbars in Chrome.
See also #4753.