View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001324 | OpenMPT | User Interface | public | 2020-05-17 20:47 | 2020-05-18 20:19 |
Reporter | sincx | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | x64 | OS | Windows | OS Version | 10 |
Product Version | OpenMPT 1.29.00.* (old testing) | ||||
Summary | 0001324: Pattern position not maintained when switching between modules | ||||
Description | Demonstration: http://i.sincx.xyz/pattsw.gif When scrolled down past a certain point (exact point seems to vary?) in a pattern, when switching to another module and back, the pattern view is scrolled up well past where it was prior to switching. In older versions (I tested 1.27 and 1.28), it seems that MPT tries to roughly snap the bottom of the pattern to the bottom of the view. In 1.29, though, as can be seen in the GIF, it does not do that at all, and loads even farther up. I don't know if this is a relevant observation, or if it is mere coincidence. | ||||
Steps To Reproduce | Load two modules (ideally one having relatively long patterns, I tested with length 128); scroll far down in a pattern in one, then switch to the other module, and switch back. | ||||
Tags | No tags attached. | ||||
Has the bug occurred in previous versions? | Sort of (see description) | ||||
Tested code revision (in case you know it) | r12866 | ||||
I left a note about this in the code: Switching between modules (when MDI childs are maximized) first (invisibly) resizes the MDI child to windowed size, then it goes back to maximized size. This is why the scroll size sometimes moves. This happens either in the Windows MDI handling code or in MFC, definitely not in our own code. I have not found a workaround for this yet and I'm not sure if it's possible to work around at all. |
|
The difference in behaviour you notice is that you were probably using different settings with 1.27 / 1.28 and the restored window size of MDI child windows was bigger than in your 1.29 configuration. If the restored size of the window is bigger, this bug is less likely to happen (because the scroll limits would be different). |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2020-05-17 20:47 | sincx | New Issue | |
2020-05-18 20:07 | Saga Musix | Note Added: 0004332 | |
2020-05-18 20:14 | Saga Musix | Note Added: 0004333 | |
2020-05-18 20:19 | Saga Musix | Note Edited: 0004332 |