Menu

#1 When magnifying PS file, scrollbars do not "update"

open-fixed
nobody
None
5
2005-08-28
2005-08-19
No

When viewing a PS file and after zooming in or out the
scrollbars do not update or resize accordingly.
Work-around was done by adding the following:

In PostScriptPane.java:setScale:
public void setScale(float scale) {
device.setScale(scale);
Enumeration e = pages.elements();
while (e.hasMoreElements()) {
PagePane pagePane = (PagePane) e.nextElement();
pagePane.updatePageScale(scale);
/**
* UPDATE: 8/19/2005
*
* ADDED TO FIX SCALING NOT UPDATING SCROLLBAR
*/
doLayout();
fireViewResizeEvent();
}
validate();
}

Without digging any deeper this was the quickest fix.
Perhaps a more thorough fix is due, perhaps not, I have
not looked into this very much.

Discussion

  • Anonymous

    Anonymous - 2005-08-28
    • status: open --> open-fixed
     
  • Anonymous

    Anonymous - 2005-08-28

    Logged In: YES
    user_id=1103862

    This issue is fixed in another bug. Please apply the
    attached diff...

     
  • Anonymous

    Anonymous - 2005-08-28

    Fixes.diff

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.