Zoom to Best Fit incorrectly excludes scroll bar areas from available area

Bug #730803 reported by grofaty on 2011-03-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Low
Unassigned

Bug Description

Pinta 0.7 on Windows XP sp3:
1. Click New button from toolbar.
2. Select 1000x1000 pixels.
3. New image is displayed. In zoom combo-box there is 59% displayed.
4. If I click <Ctrl>+B (Best Fit) and image gets 61% zoom displayed.
I thought "best fit" is default selection. But it looks it is not. Also <Ctrl>+Z does not zoom picture back to 59%.

grofaty (grofaty) wrote :

It looks zoom does not have an undo option. This is probably intentional, is it?

Jonathan Pobst (jpobst) wrote :

Correct, zoom does not have an undo option as it doesn't affect the image. It's roughly the same as scrolling, which also does not have an undo option.

grofaty (grofaty) wrote :

Yes, you are right zoom does not effect the image. What about first four steps - why is picture resized from 59% to 61%.

Jonathan Pobst (jpobst) wrote :

The 61% was calculated when there were no scrollbars, so the available area is bigger. The 59% was calculated with scrollbars, so there is less room.

grofaty (grofaty) wrote :

I can see no scrollbars. Am I missing something?

Robert Nordan (rpvn) wrote :

It seems it's not the double selection that causes the difference, but the fact that any scrollbars are taken into the calculation when they shouldn't since they disappear when the image is resized . Changing the title to reflect that.

summary: - Double selection of Best Fit produces different zoom percentage
+ Zoom to Best Fit incorrectly excludes scroll bar areas from available
+ area
Changed in pinta:
status: New → Confirmed
importance: Undecided → Low
grofaty (grofaty) wrote :

I have rechecked this on Pinta 1.1 on Windows XP / Ubuntu 11.10. It looks like this is Windows specific problem. I have tested this and it works fine on Ubuntu, but the problem appears on Windows.

P.S. Also tested on Pinta the latest development on Ubuntu 11.10 and it also works fine.

Robert Nordan (rpvn) wrote :

Just a note: It's a while since I checked this, but I think it might be independent of OS, but instead depends on resolution. (or how much space Pinta is given on screen)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers