aboutsummaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-05-06 22:54:03 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-05-06 22:54:03 +0200
commit7671dd333a8da8251b0e94f586310ab3e2c523ee (patch)
treecffbcb5cb82ed4810743217a8cff7f06a3a72263 /src/cache.c
parent066253c8ec7541a2beaae92d502392f1ca0456e6 (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