|
|
@ -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)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|