WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
81209
Consistent resize events in mobile browsers
https://bugs.webkit.org/show_bug.cgi?id=81209
Summary
Consistent resize events in mobile browsers
Allan Sandfeld Jensen
Reported
2012-03-15 04:47:52 PDT
As seen on
http://www.quirksmode.org/dom/events/resize_mobile.html
all the mobile browsers treat resize-events slightly different, even between webkit browsers. The problem is probably that the event is originally designed for the desktop-case and there has been no obvious interpretation of what it should mean on a mobile browser. Some discussion of these issues can also be found in
bug 80242
.
Attachments
Add attachment
proposed patch, testcase, etc.
Kenneth Rohde Christiansen
Comment 1
2012-03-15 06:17:21 PDT
It would be great with a method for getting the scroll bar sizes. It would be useful for this and it will be useful for innerWidth etc as well. This should be easy on most platform (using webkit for drawing scrollbars), but might be a bit more complicated on Mac and GTK, though looking at the documentation it seems doable. Passing some pseudo code here for inspiration and because something might know of better ways of doing this. Mac: double horizontalScrollbarWidth() { BEGIN_BLOCK_OBJC_EXCEPTIONS; CGFloat width = 0; NSScrollView* view = NSScrollView<WebCoreFrameScrollView> *>(platformWidget()); if (view->hasHorizontalScroller()) width = view->horizontalScroller()->scrollerWidth(); END_BLOCK_OBJC_EXCEPTIONS; } And GTK+: double horizontalScrollbarWidth() { if (!shouldCreateMainFrameScrollbar(this) fallback to webcore scrollbars GtkWidget* measuredWidget = hostWindow()->platformPageClient(); GtkWidget* parentWidget = gtk_widget_get_parent(measuredWidget) if (!parentWidget) return 0; GtkWidget* sb = gtk_scrolled_window_get_hscrollbar(GTK_SCROLLED_WINDOW(parentWidget)); if (!sb) return 0; GtkAllocation allocation; gtk_widget_get_allocation(sb, &allocation); return allocation.width; }
Radar WebKit Bug Importer
Comment 2
2020-07-27 20:23:06 PDT
<
rdar://problem/66196856
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug