diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-05-06 22:54:03 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-05-06 22:54:03 +0200 |
commit | 7671dd333a8da8251b0e94f586310ab3e2c523ee (patch) | |
tree | cffbcb5cb82ed4810743217a8cff7f06a3a72263 /src/cache.c | |
parent | 066253c8ec7541a2beaae92d502392f1ca0456e6 (diff) |
fix image scaling on reload with border, margin, or padding > 0
On reload images have their buffer set already from cache when
Image::sizeAllocateImpl() is called.
In that case the widget is still at size 1x1. In that case
getContentHeight() and getContentWidth() return values <= 0
when border + margin + padding > 0.
To fix the issue use the new size given in allocation instead of the
current widget dimensions to determine whether to scale the buffer.
(report and initial analysis by furaisanjin <furaisanjin@gmail.com>)
Diffstat (limited to 'src/cache.c')
0 files changed, 0 insertions, 0 deletions