Commit e5b4de90 authored by Craig Watson's avatar Craig Watson

When control view is reset, update the display view and the zoom palette

parent 01e1248a
......@@ -1688,8 +1688,10 @@ void UBBoardController::boardViewResized(QResizeEvent* event)
mControlView->centerOn(0,0);
if (mDisplayView)
if (mDisplayView) {
UBApplication::applicationController->adjustDisplayView();
mDisplayView->centerOn(0,0);
}
mPaletteManager->containerResized();
......
......@@ -497,6 +497,7 @@ void UBBoardPaletteManager::containerResized()
mZoomPalette->move(userLeft + userWidth - mZoomPalette->width()
, userTop + userHeight /*- mPageNumberPalette->height()*/ - innerMargin - mZoomPalette->height());
mZoomPalette->adjustSizeAndPosition();
mZoomPalette->refreshPalette();
}
if (isFirstResized && mKeyboardPalette && mKeyboardPalette->parent() == UBApplication::boardController->controlContainer())
......
......@@ -45,6 +45,7 @@ class UBZoomPalette : public UBFloatingPalette
public slots:
void hide();
void refreshPalette();
private:
UBBoardController* mBoardController;
......@@ -55,7 +56,6 @@ class UBZoomPalette : public UBFloatingPalette
bool mIsExpanded;
private slots:
void refreshPalette();
void showHideExtraButton();
void goHundred();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment