himselfv / wakan

Japanese and Chinese learning tool with dictionary
39 stars 7 forks source link

Kanji details layout breaks when you resize the window vertically #160

Closed himselfv closed 11 years ago

himselfv commented 11 years ago

Original report by me.

Originally reported on Google Code with ID 160

Undock kanji details. Resize the windows vertically so that it's under 50 pixels (for
instance) in height. Resize it back. Observer the layout of bottom buttons broken.

Reported by himselfv on 2013-04-22 12:54:49

himselfv commented 11 years ago
(Why is it possible to resize it down to nothing in the first place?)

Reported by himselfv on 2013-04-22 13:00:21

himselfv commented 11 years ago
This happens even if you don't release the mouse while resizing down and then up. It
also seems to depend on the speed with which you pull the mouse upwards.

My guess: aligned controls are adjusted not dynamically but from time to time (say,
every 50 msec). That's why realignment is laggy when you drag-resize. So if you drag-resize
fast enough, combined with the fact that control sizes are less than zero, something
goes wrong and broken sizes/positions are remembered.

I'm too lazy to dig into it so I'll just force a bottom height constraint on the form
while it's undocked.

Reported by himselfv on 2013-04-22 13:19:09

himselfv commented 11 years ago
Fixed @r506.

Reported by himselfv on 2013-04-22 13:29:17

himselfv commented 11 years ago

Reported by himselfv on 2013-04-22 13:31:07

himselfv commented 11 years ago

Reported by himselfv on 2013-04-22 13:31:57