[Webkit-unassigned] [Bug 60758] [Qt] SizeHint for QGraphicsWebView is hardcoded

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 13 05:27:16 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=60758





--- Comment #2 from Alberto Mardegan <mardy at users.sourceforge.net>  2011-05-13 05:27:16 PST ---
(Copying my reply from PMO too)

(In reply to comment #1)
> On PMO, I suggested to close this as invalid with the following example:
> 
> "Let's say I start from a width of 800 pixels. I go on a page that cannot be
> layouted with less than 10000 pixels. The content size it adjusted to 10000
> pixels width, the layout takes that into account and create a huge view.
> Next, I go on amazon.com. Amazon has a flex layout. It adjusts itself to the
> current viewport size. Since the width is 10000, the content size will stay
> 10000 pixel wide for amazon and the layout will look really bad.

This is a personal taste :-) Indeed I agree with you, but it IMHO it shouldn't
be Qt's task to decide what looks good and what doesn't.

If the application developer believes that this doesn't looks good, he should
use an appropriate QSizePolicy on the layout containing the view. That's what
QSizePolicy is for.

If the rendered web content is 10000 pixels wide, I wouldn't expect sizeHint() to return anything less than that.

-- 
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