fitted_canvas: second part of 3784aa
This commit is contained in:
parent
942e362e18
commit
4ded1e7df4
@ -65,10 +65,10 @@ FittedCanvasWidget::on_size_request (Gtk::Requisition* req)
|
|||||||
{
|
{
|
||||||
const double scale = _follow_scale ? UIConfiguration::instance ().get_ui_scale () : 1;
|
const double scale = _follow_scale ? UIConfiguration::instance ().get_ui_scale () : 1;
|
||||||
if (_nominal_width > 0) {
|
if (_nominal_width > 0) {
|
||||||
req->width = _nominal_width * scale;
|
req->width = nominal_width() * scale;
|
||||||
}
|
}
|
||||||
if (_nominal_height > 0) {
|
if (_nominal_height > 0) {
|
||||||
req->height = _nominal_height * scale;
|
req->height = nominal_height() * scale;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user