Page 1 of 1

[LH2744] (Split View) Split button in header changes to "change split type" icon rather than "close split" icon

Posted: Tue Nov 21, 2017 10:20 pm
by Tridens92
Sometimes, when the editor is split, the split button in the header view changes from the default icon (the small square), which should close the split window, to the "change split type" icon (the function which normally requires Alt + Click to activate). When this happens, there's no way to close the split window from the icon...it must be done via the View menu.

I haven't figured out a reproducible pattern for this bug yet. I'll keep trying. It's possible it's connected with using the Bookmarks tab of the Inspector, then right-clicking on a bookmark and choosing "Open in Other Editor" But if it is it's not 100% reproducible.

Windows 10 64-bit Version 1709
Scrivener Beta 2.9.0.1 (19429)

Re: Bug: (Split View) Split button in header changes to "change split type" icon rather than "close split" icon

Posted: Wed Nov 22, 2017 5:39 am
by MimeticMouton
Thanks for the report. I haven't been able to trigger this, so if you could find a reproducible case, that'd be great. If you do get it to occur again, what happens if you hold the Alt key--does that just switch between the two directions without letting you get back to close?

Re: [JH] (Split View) Split button in header changes to "change split type" icon rather than "close split" icon

Posted: Wed Nov 22, 2017 6:01 am
by Aurion
I've replicated this. It seems to be triggered by usage of the Alt+tab, which I use constantly. :)

Here are the following steps to test/replicate:

    Single editor view, click the split button to initiate horizontal split (default).
    Button turns into single editor. Works fine when clicked.
    Button will turn into vertical split when alt key is held and clicked. Works fine.

OR

    Single editor view, hold the alt button and click the split button to initiate vertical split.
    Button turns into single editor. Works fine when clicked.
    Button will turn into horizontal split when alt key is held and clicked. Works fine.

i.e. if you don't alt-tab in between initiating the split/unsplit commands, it seems to work. But:

    Single editor view, click the split button to initiate horizontal split (default).
    Alt+tab to another window (doesn't matter which), and then alt+tab back to Scrivener 3.
    The Alt seems to "stick" in that the split button is now "locked" onto vertical split. Clicking the button will trigger vertical split, after which the button is "stuck" onto horizontal split. You are now locked between the two split view functions, horizontal and vertical.
    Holding the Alt key does not trigger a change in button function; it's still stuck on either vertical or horizontal split depending where you last left the Scrivener window.
    Tapping Alt again will "unstick" the button; it will now show single editor again and you'll once again need to hold the Alt button (or Alt+tab again) to replicate the issue.

Windows 10, 64 bit Home.

Re: [JH] (Split View) Split button in header changes to "change split type" icon rather than "close split" icon

Posted: Wed Nov 22, 2017 7:48 am
by MimeticMouton
Ah ha! Thanks for working that out. I've filed the bug.

Re: [LH2744] (Split View) Split button in header changes to "change split type" icon rather than "close split" icon

Posted: Wed Nov 22, 2017 10:12 am
by Tridens92
Thanks for helping tracking the cause for this down, Aurion !

Re: [LH2744] (Split View) Split button in header changes to "change split type" icon rather than "close split" icon

Posted: Wed Nov 22, 2017 6:55 pm
by garpu
OMG, yes. I alt-tab all the time. That's exactly what happened in my case.

Re: [LH2744] (Split View) Split button in header changes to "change split type" icon rather than "close split" icon

Posted: Thu Dec 28, 2017 1:05 pm
by Tridens92
Just reporting that this bug is still present in 2.9.0.2 beta.

Thanks!