summaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-06-17 00:00:18 +0200
committerSebastian Geerken <devnull@localhost>2014-06-17 00:00:18 +0200
commitaaec2616c189d863a0a23d1c96165335dd0bad7a (patch)
tree4d2f4aa3f7aa457f9bf6a152a19aaa82701873cd /dw/layout.cc
parentd23346d250cd18718f0540cfca49e2204fb40767 (diff)
Some RTFL.
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index bd519042..3cc13980 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -1268,8 +1268,9 @@ void Layout::scrollPosChanged (View *view, int x, int y)
*/
void Layout::viewportSizeChanged (View *view, int width, int height)
{
- _MSG("Layout::viewportSizeChanged w=%d h=%d new_w=%d new_h=%d\n",
- viewportWidth, viewportHeight, width, height);
+ DBG_OBJ_MSGF ("resize", 0, "<b>viewportSizeChanged</b> (%p, %d, %d)",
+ view, width, height);
+ DBG_OBJ_MSG_START ();
/* If the width has become higher, we test again, whether the vertical
* scrollbar (so to speak) can be hidden again. */
@@ -1296,14 +1297,21 @@ void Layout::viewportSizeChanged (View *view, int width, int height)
DBG_OBJ_SET_NUM ("viewportHeight", viewportHeight);
containerSizeChanged ();
+
+ DBG_OBJ_MSG_END ();
}
void Layout::containerSizeChanged ()
{
+ DBG_OBJ_MSG ("resize", 0, "<b>containerSizeChanged</b> ()");
+ DBG_OBJ_MSG_START ();
+
if (topLevel) {
topLevel->containerSizeChanged ();
queueResize (true);
}
+
+ DBG_OBJ_MSG_END ();
}
} // namespace core