_text_height = 0;
}
- if (_pixbuf) {
+ if ((_elements & RecButton) || _pixbuf) {
xpad = 6;
}
if ((_elements & RecButton) && !_pixbuf) {
assert(!(_elements & Text));
- req->width += char_pixel_height();
- req->height += char_pixel_height();
+ req->width += std::max(char_pixel_width(), char_pixel_height());
+ req->height += std::max(char_pixel_width(), char_pixel_height());
}
req->width += _corner_radius;
+ req->height += _corner_radius;
if ((_tweaks & Square)==Square) {
if (req->width < req->height)