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
|
||||
Rectangle::size_request (double& w, double& h) const
|
||||
{
|
||||
if (_requested_width || _requested_width) {
|
||||
w = _requested_width;
|
||||
h = _requested_height;
|
||||
} else {
|
||||
w = _rect.width();
|
||||
h = _rect.height();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user