summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-11-26 12:50:37 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2009-11-26 12:51:18 (GMT)
commit4160adc44a512a97d333227cfdde0648fb4132a9 (patch)
treef1383534ca0a716bbedf520691b99325891edba1 /examples
parentb56dcd0f2093c35b1d638eebe38d113e8d59ea0c (diff)
downloadQt-4160adc44a512a97d333227cfdde0648fb4132a9.zip
Qt-4160adc44a512a97d333227cfdde0648fb4132a9.tar.gz
Qt-4160adc44a512a97d333227cfdde0648fb4132a9.tar.bz2
Fixed context menu placement partially outside screen bug in Symbian.
In style demo example when spinbox was long tapped, the context menu was placed partially outside screen. The preconditions for bug were: 1. Tap position is near screen right edge 2. Minimum space width requested by context menu is > sreen width The new (simplified) logic is as follows: 1. If menus right edge in requested position is outside screen right edge, the menu is moved to left enough to fit on screen. i.e. if (tap position + menu width > screen right ) x = screen right - menu width 2. As a result of above statement the x position might go outside left boundary of screen. This is fixed by next statements if( x < screen left ) x = screen left Task-number: QTBUG-6164 Reviewed-by: Alessandro Portale
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions