Fixed minimum size for W3C.

preferencesAboutTextFull
Aleksei Kanash 12 years ago
parent 8c4f818235
commit d33b872ba6
  1. 6
      src/domain/UBAbstractWidget.cpp

@ -172,8 +172,10 @@ bool UBAbstractWidget::hasEmbededFlash()
void UBAbstractWidget::resize(qreal width, qreal height) void UBAbstractWidget::resize(qreal width, qreal height)
{ {
QWebView::page()->setViewportSize(QSize(width, height)); qreal w = qMax((qreal)mNominalSize.width(), width);
QWebView::setFixedSize(QSize(width, height)); qreal h = qMax((qreal)mNominalSize.height(), height);
QWebView::page()->setViewportSize(QSize(w, h));
QWebView::setFixedSize(QSize(w, h));
} }

Loading…
Cancel
Save