canvas: honor explicit size request for Rectangle
This commit is contained in:
parent
19e4063b6b
commit
75177f3ef8
@ -163,8 +163,13 @@ Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) con
|
|||||||
void
|
void
|
||||||
Rectangle::size_request (double& w, double& h) const
|
Rectangle::size_request (double& w, double& h) const
|
||||||
{
|
{
|
||||||
w = _rect.width();
|
if (_requested_width || _requested_width) {
|
||||||
h = _rect.height();
|
w = _requested_width;
|
||||||
|
h = _requested_height;
|
||||||
|
} else {
|
||||||
|
w = _rect.width();
|
||||||
|
h = _rect.height();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user