Menu

#15 Window being resized to the right at every ezthumb startup

3.6.7
closed
Xuming
None
2017-06-15
2017-06-07
gbr
No

I've noticed this weird behavior before, I just couldn't find a way to reproduce it. I've recorded a video:

https://www.youtube.com/watch?v=bsENTv3oyhU&

How to reproduce

  • Reset ezthumb preferences:
mv ~/.config/ezthumb/ezthumb.conf ~/.config/ezthumb/ezthumb.conf.bak
  • Run this command to spawn and kill ezthumb after 1 second (hit CTRL-C to stop it):
while true; do ezthumb & sleep 1; killall ezthumb; done

Notice how the window gets resized at each startup.

System:

ezthumb 3.6.5 (GTK+2 build)
gtk+2 2.24.31
Arch Linux x64

Discussion

  • gbr

    gbr - 2017-06-07

    I've messed up the title there, sorry. It should be: "Window gets smaller at each startup"

     

    Last edit: gbr 2017-06-07
  • Xuming

    Xuming - 2017-06-08
    • status: open --> accepted
    • assigned_to: Xuming
    • Milestone: 3.6.4 --> 3.6.7
     
  • Xuming

    Xuming - 2017-06-09

    Thanks gbr. I rememeber I saw this before. I'll review the resize part asap

     
  • Xuming

    Xuming - 2017-06-15
    • status: accepted --> closed
     
  • Xuming

    Xuming - 2017-06-15

    Every time when IUP mapping a window with a specified dimension size, the mapped window is always slightly smaller than the required size. The differ of the sizes depends on the local theme. Therefore when the ezthumb stores the current size in the resize event, the size is actually getting smaller. In the loop running test, the shrinking dialog looks pretty funny.

    The workaround is to drop the first resize event so the shrinking phenomenon would be limited in the current window only.

    The fix will be released in 3.6.7.

     

Log in to post a comment.

MongoDB Logo MongoDB