[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 179815] webbrowser does not resize
From:       Olli Salonen <oasalonen () gmail ! com>
Date:       2009-01-09 15:26:53
Message-ID: 20090109152653.5AB4813F9A () immanuel ! kde ! org
[Download RAW message or body]

http://bugs.kde.org/show_bug.cgi?id=179815


Olli Salonen oasalonen gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oasalonen@gmail.com




--- Comment #8 from Olli Salonen <oasalonen gmail com>  2009-01-09 16:26:45 ---
I've been trying to make sense of this bug for the past day or so. I've been
able to narrow down the problem a bit, but can't pinpoint it exactly because
I'm a QT novice.

In the first browser instance, resizing works until the first page is loaded.
This can be tested by commenting out the m_browser->setUrl() in the function
WebBrowser::graphicsWidget() in webbrowser.cpp, or simply severing the internet
connection before starting the applet.

After the page is loaded, none of the children of the applet receive
setGeometry() signals and do not resize accordingly. It seems as if the main
layout of the widget gets disconnected from resize events.

The problem appears somewhere between the call to WebView::setUrl() in
webview.cpp (kdelibs/plasma/widgets/), which only contains a call to
QWebFrame::load(), and before the page is loaded (before
WebViewPrivate::loadingFinished() is called).

I tried a workaround by creating a WebBrowser::constraintsEvent() handler which
calls m_layout->setGeometry(contentsRect()). This results in resize working,
but margins are not preserved and it doesn't fix the underlying problem.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic