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) ...@@ -1688,8 +1688,10 @@ void UBBoardController::boardViewResized(QResizeEvent* event)
mControlView->centerOn(0,0); mControlView->centerOn(0,0);
if (mDisplayView) if (mDisplayView) {
UBApplication::applicationController->adjustDisplayView();
mDisplayView->centerOn(0,0); mDisplayView->centerOn(0,0);
}
mPaletteManager->containerResized(); mPaletteManager->containerResized();
......
...@@ -497,6 +497,7 @@ void UBBoardPaletteManager::containerResized() ...@@ -497,6 +497,7 @@ void UBBoardPaletteManager::containerResized()
mZoomPalette->move(userLeft + userWidth - mZoomPalette->width() mZoomPalette->move(userLeft + userWidth - mZoomPalette->width()
, userTop + userHeight /*- mPageNumberPalette->height()*/ - innerMargin - mZoomPalette->height()); , userTop + userHeight /*- mPageNumberPalette->height()*/ - innerMargin - mZoomPalette->height());
mZoomPalette->adjustSizeAndPosition(); mZoomPalette->adjustSizeAndPosition();
mZoomPalette->refreshPalette();
} }
if (isFirstResized && mKeyboardPalette && mKeyboardPalette->parent() == UBApplication::boardController->controlContainer()) if (isFirstResized && mKeyboardPalette && mKeyboardPalette->parent() == UBApplication::boardController->controlContainer())
......
...@@ -45,6 +45,7 @@ class UBZoomPalette : public UBFloatingPalette ...@@ -45,6 +45,7 @@ class UBZoomPalette : public UBFloatingPalette
public slots: public slots:
void hide(); void hide();
void refreshPalette();
private: private:
UBBoardController* mBoardController; UBBoardController* mBoardController;
...@@ -55,7 +56,6 @@ class UBZoomPalette : public UBFloatingPalette ...@@ -55,7 +56,6 @@ class UBZoomPalette : public UBFloatingPalette
bool mIsExpanded; bool mIsExpanded;
private slots: private slots:
void refreshPalette();
void showHideExtraButton(); void showHideExtraButton();
void goHundred(); 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