[Webkit-unassigned] [Bug 31036] New: need a height equivalent of RenderBox::minPrefWidth()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 2 17:16:16 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=31036
Summary: need a height equivalent of RenderBox::minPrefWidth()
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Enhancement
Priority: P2
Component: Layout and Rendering
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: erikkay at chromium.org
(apologies if an API like this already exists, but I haven't been able to find
it)
For Chrome's extension system, we let the extension create a popup widget using
HTML. This popup widget's size is (mostly) unconstrained externally. The idea
is to let the developer take advantage of some dynamic layout so that they
don't have to worry about issues like system font sizes and localization.
Obviously, the developer needs to put some constraints in (whitespace: nowrap,
, an explicit width or height on an element, etc.).
I can get pretty close to my goal by using RenderBox::minPrefWidth() (on
RenderView) and using contentHeight() for the height and resizing the
RenderView to match. Unfortunately, with this technique, the height will never
shrink. There doesn't seem to be a way to ask for the "intrinsic height" of
the view at its current width. I'm assuming this must be known somewhere in
order to calculate the overflow if any, but it looks like this value isn't
saved or exposed.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list