update zoom to support pane or window
Merge pull request #99 from justone/fix_zoom

update zoom to support pane or window