Opened 15 years ago
Closed 12 years ago
#4146 closed bug (fixed)
Magnify doesn't resize nicely
Reported by: | atmartens | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/Magnify | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
If you make the magnify program small enough, the text runs too far outside the window, and the option button covers some of the text.
Attachments (3)
Change History (15)
by , 15 years ago
Attachment: | magnify-resize.png added |
---|
comment:1 by , 15 years ago
Component: | - General → Applications/Magnify |
---|
comment:2 by , 14 years ago
I attached a patch that automatically hides/shows the information text if needed.
Other solution: place B_AUTO_UPDATE_SIZE_LIMITS in the window constructor
however, thats not the best solution because the user cannot resize the window smaller than the default size - this is why I don't use it in the patch
by , 14 years ago
Attachment: | magnify.diff added |
---|
comment:3 by , 14 years ago
patch: | 0 → 1 |
---|
comment:4 by , 13 years ago
Sorry for the very late reply; your patch has two issues that would need to be solved (I even tried, but the Magnify code is quite scary):
- When closing the window while the info is not visible due to the size, it will lose the setting.
- You make members public to get the preferred size of the widget. While that kind of fits to the coding style within Magnify, it would be much better to actually implement GetPreferredSize() for the info view instead, and use that (including the height of the window) to judge whether or not the info view should be visible.
comment:5 by , 13 years ago
patch: | 1 → 0 |
---|
comment:6 by , 13 years ago
Thanks for the reply, I will solve the mentioned issues eventually and create a new patch when I'll have the time.
comment:7 by , 13 years ago
Great, thanks! I didn't think you could be motivated to look into this again after that many month, it's appreciated, though!
by , 12 years ago
Attachment: | 0001-Fixes-ticket-4146.patch added |
---|
comment:8 by , 12 years ago
patch: | 0 → 1 |
---|
follow-up: 10 comment:9 by , 12 years ago
It has been a long time but here is the new patch :)
(Created with git format-patch)
comment:10 by , 12 years ago
comment:11 by , 12 years ago
Coding style issues:
- isInfoTextVisible() method name should be capitalized
- there is a space between the if and the parenthesis.
- braces for a single line if or else block should be dropped (but not in UpdateInfoBarOnResize()).
- the operator
||
shouldn't be last on a line. - TInfoView::GetPreferredSize() declaration variable names don't match the implementation ones.
comment:12 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the patch negusnyul! Applied in hrev45301, along with korli's code review.
The magnify program doesn't resize as it should