From c09b3a97dc4237c98a02fe6d6dc50a27c046912a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 4 Feb 2008 00:39:34 +0000 Subject: [PATCH] Move the dragger back to its corner on resize. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23857 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/sudoku/SudokuView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/apps/sudoku/SudokuView.cpp b/src/apps/sudoku/SudokuView.cpp index ffc3abf9cd..8ca884be5c 100644 --- a/src/apps/sudoku/SudokuView.cpp +++ b/src/apps/sudoku/SudokuView.cpp @@ -581,6 +581,11 @@ SudokuView::FrameResized(float /*width*/, float /*height*/) fHintFont.GetHeight(&fontHeight); fHintBaseline = ceilf(fontHeight.ascent) / 2 + (fHintHeight - ceilf(fontHeight.descent)) / 2; + + // fix the dragger's position + BView *dragger = FindView("_dragger_"); + if (dragger) + dragger->MoveTo(Bounds().right - 7, Bounds().bottom - 7); }