PrettyOverlay has width fixed in CSS
Bug #570354 reported by
Sidnei da Silva
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAZR Javascript Library |
Fix Released
|
Medium
|
Paul Hummer |
Bug Description
I wanted to host a wider widget inside a PrettyOverlay, by setting the widget size to a larger number. However the CSS on the #yui3-pretty-
Ideally, it should be possible to create an overlay that takes 80% of the page by doing this:
var overlay = new Y.lazr.
width: "80%")
Overriding the width to 'auto' makes it work:
#yui3-pretty-
width: auto !important;
}
Related branches
lp:~rockstar/lazr-js/overlay-width
- Tim Penhey (community): Approve
-
Diff: 52 lines (+6/-6)1 file modifiedsrc-js/lazrjs/overlay/assets/skins/sam/pretty-overlay-skin.css (+6/-6)
Changed in lazr-js: | |
assignee: | Paul Hummer (rockstar) → nobody |
status: | New → Triaged |
Changed in lazr-js: | |
assignee: | nobody → Paul Hummer (rockstar) |
status: | Triaged → In Progress |
Changed in lazr-js: | |
status: | In Progress → Fix Committed |
Changed in lazr-js: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
There are several other changes that need to be made:
1. .yui-pretty-overlay would also need the width set to auto. overlay- modal should become a css class instead of an ID selector.
2. The padding would need to be increased, or javascript would need to be added to prevent the overlay from looking ridiculously narrow for narrow content.
3. Resizing the window can cause strange resizing of the overlay if the width is set to auto.
4. #yui-pretty-