Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.16k stars 303 forks source link

Status Bar Causes Undesired Resizing of Split Windows #2651

Open adrian-enspired opened 7 years ago

adrian-enspired commented 7 years ago

Short Summary

The split window width changes depending on the content displayed in the status bar.

Steps to Reproduce

Expected results

The size of each split window should not change.

Actual results

The size of the split windows change as the size of the content in the status bar changes. Note, this is not simply related to overflow; the issue still occurs when there is plenty of free space in the status bar.

demonstration: https://youtu.be/u1_Tq8yuzyo

Platform Information

Komodo Edit or IDE? Komodo Edit

Komodo Version? 10.2

Operating System (and version)? Fedora 25 (gnome 3)

Additional Information

Please see https://community.komodoide.com/t/komodo-10s-new-status-bar-a-couple-of-items-for-discussion/2677/12?u=adrian_enspired and the following conversation.

Naatan commented 7 years ago

Thanks for filing this @adrian-enspired !

th3coop commented 6 years ago

@Naatan, were you able to reproduce this? I'm not seeing it in Edit or IDE.

Naatan commented 6 years ago

I don't believe so, not sure. There's more info on the forum thread referenced: https://community.komodoide.com/t/komodo-10s-new-status-bar-a-couple-of-items-for-discussion/2677/28

th3coop commented 6 years ago

I'm not seeing any helpful/additional information. I tried to make the window as narrow as possible and opened one of the largest files I can find in the Komodo repo. I selected from the start to a few thousand lines down and the splitview width never changes.

@adrian-enspired, are you still seeing this?

adrian-enspired commented 5 years ago

Sorry for the late reply.

Yes, I just installed a fresh copy of komodo edit (11.1.0, build 18196) and the behavior persists, exactly as shown in the screen recording above.

adrian-enspired commented 5 years ago

BTW updated workaround:

[anonid=statusbar-selection] {
  display: none;
}

this is the minimal amount of hiding I've been able to find that gets rid of the issue. might help diagnose.

adrian-enspired commented 5 years ago

@cgchoffman Just wanted to tag you to be sure you saw my reply, as this issue is still backlogged "pending response." I switched themes today and forgot to add my workaround above… problem definitely still exists : )

th3coop commented 5 years ago

@adrian-enspired, I still can't reproduce the issue but I finally noted that your status bar shows a lot more information than the default status bar. There is no sel or ch in the default. How did you add those? I've seen them before from a userscript I think but I can't recall where it came from.

adrian-enspired commented 5 years ago

Hi,

There is no sel or ch in the default. How did you add those?

I did not add them (or anything); that was a completely stock installation and was only a few days old at the time I made that screencast.

I'd changed the theme but it was one of the built-in themes (unfortunately, I don't recall which).

I think the only other non-stock thing at that point was that I had already hidden/disabled the file "breadcrumbs" in an attempt to narrow down this issue. Basically everything I did to try to solve that was found in the linked forum discussion.

th3coop commented 5 years ago

that was a completely stock installation and was only a few days old at the time I made that screencast.

It's not a stock installation in the video. The default UI doesn't look like that. Your status bar is at the bottom (Prefs > Appearance > Move Status bar to bottom), you have the additional status bar info (don't know how those get there but if you have a userscript that runs at start that would explain why you don't think you added them), among other things. Can you reset your profile and see if you can reproduce the issue? Help > Troubleshooting > Restart in Safe-Mode

adrian-enspired commented 5 years ago

Sorry; "stock" meaning I had not installed any user scripts/plugins/themes/etc.. Everything I had was provided from the official install script. Yes, I had moved the status bar to the bottom; no, I did not do anything to add extra info on the statusbar.

This issue has come up consistently over several installs on both linux (ubuntu) and osx over the past 18 months. I've had to add the custom css to work around it, every time.

Can you reset your profile and see if you can reproduce the issue?

Yes, will do tomorrow. I'll also find some time to do a clean install and make a new screencast.

Thanks for your time.

th3coop commented 5 years ago

@adrian-enspired, ya the key I'm missing is how you get Komodo to a state where I can repro. I don't want to add your patch for something if it's not part of the core. I appreciate you checking a clean profile when you have a chance, thanks for that.

adrian-enspired commented 5 years ago

https://youtu.be/rxwGe2H8KSc

so,

Komodo Edit, version 11.1.0, build 18196, platform linux-x86_64.

adrian-enspired commented 5 years ago

Also, the css I pasted above is definitely not a "patch" :smile:
It just hides a component so the resizing stops. Workaround, but doesn't fix anything.

th3coop commented 5 years ago

Thanks for the video. Maybe I have something removing those status bar field. Not sure.