Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Sidebar refuses to resize, shrinks, and gets stuck when resizing (Linux Mint 19) #14487

Open
ajstensland opened this issue Jul 20, 2018 · 13 comments

Comments

@ajstensland
Copy link

Description and Reproduction Steps

When I try to resize the sidebar from the default size:
brackets debug 2

It fails to resize to the specified dimension (if anything, it just grows by a few pixels):
screenshot from 2018-07-20 15-54-21

When I click again to try again, the sidebar hides itself:
brackets debug 5

However, when I try to resize from here it either a) does nothing or b) opens the sidebar to a very small, unmanageable size:
brackets debug 4

Sometimes, and I'm not sure when and when not, there is a small tab poking out (not sure if this is intended or not) like so:
brackets debug 7

I encountered this error on my first-ever install of Brackets within 30 seconds of use. See Attempted Fixes for more information.

TL;DR

Expected behavior: For the sidebar's width to follow my cursor and stop resizing when the mouse button was lifted.

Actual behavior: The sidebar does not move with the mouse, and when the mouse button is lifted, the <-> resizing cursor remains visible wherever I put the mouse on the window. Then, clicking again on the sidebar border, the sidebar hides itself. After repeating some number of times, the sidebar, when opening, only opens by about 10-30 pixels and will not grow much more (size seems arbitrary when dragging open).

Attempted Fixes

Restarting Brackets does not fix the problem -- the sidebar stays in its same position.

Running with extensions disabled does not fix the problem.

Changing from my NVidia card to the integrated Intel graphics does not fix the problem.

However, deleting ~/.config/Brackets/cef-data, state.json, and brackets.json does solve the problem until I try to resize the sidebar again.

Versions

OS: Linux Mint 19 Tara
Linux Kernel: Linux 4.15.0-24-generic
Brackets: 1.13.0-17696 (Installed from snap)

@D-Jones-1
Copy link

If there's anything I can do to fix the bug and someone can explain the work to be done, I'd be happy to.

@swmitra
Copy link
Collaborator

swmitra commented Aug 30, 2018

Go to Debug->Show Developer tools. From the inspector try to inspect the partition between the coding surface and sidebar. You should be able to spot a horizontal resizer 6px? wide and transparent. If you can't find that with inspect, go to the DOM in inspector page and search for sidebar. In sidebar div try to spot the resizer. Post the styles for the resizer, like, display, dimension, position and visibility.

@csrohit
Copy link

csrohit commented Sep 14, 2018

Check for the libcurl3 and libpango1.0-0 dependencies.
I tried to reinstall brackets and got these missing dependency errors. After installing the required dependencies Brackets is working fine on UBUNTU 18.04

@ajstensland
Copy link
Author

ajstensland commented Sep 21, 2018

I just noticed that if I run Brackets through the console, I get the following errors:

[0921/113742:ERROR:browser_main_loop.cc(261)] Gtk: Locale not supported by C library.
Using the fallback 'C' locale.
[0921/113743:ERROR:browser_main_loop.cc(261)] : Pixbuf theme: Cannot load pixmap file /usr/share/themes/Mint-Y-Dark/gtk-2.0/menubar-toolbar/menubar-dark.png: Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so: /snap/core/current/lib/x86_64-linux-gnu/libz.so.1: version "ZLIB_1.2.9" not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16)

(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion "GDK_IS_PIXBUF (pixbuf)" failed

(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion "GDK_IS_PIXBUF (pixbuf)" failed
[0921/113743:ERROR:browser_main_loop.cc(239)] GTK theme error: Invalid borders specified for theme pixmap:
/usr/share/themes/Mint-Y-Dark/gtk-2.0/menubar-toolbar/menubar-dark.png,
borders don't fit within the image

(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_n_channels: assertion "GDK_IS_PIXBUF (pixbuf)" failed

(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels_with_length: assertion "GDK_IS_PIXBUF (pixbuf)" failed

(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_rowstride: assertion "GDK_IS_PIXBUF (pixbuf)" failed

(... the above errors repeat many times...)

I'm just a casual user -- I'm not very well versed on GTK and Linux libraries and stuff, but I think this might give some insight.

@alsavov
Copy link

alsavov commented Apr 12, 2019

I got the same issue here under Ubuntu 18.04

@ghost
Copy link

ghost commented Apr 19, 2019

Just install brackets from the main repo


sudo add-apt-repository ppa:webupd8team/brackets
sudo apt update
sudo install brackets

@shubhsnov
Copy link
Collaborator

[0921/113742:ERROR:browser_main_loop.cc(261)] Gtk: Locale not supported by C library.
Using the fallback 'C' locale.

It seems like this issue is related to #14581 (comment), which can be fixed by installing the language pack in Ubuntu.

See my comment here: #14581 (comment)

@nagaomkar9
Copy link

nagaomkar9 commented May 14, 2019

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly.
This should surely work.
happy coding

@xidanezx
Copy link

vim ~/.config/Brackets/state.json +1569
change the size from whatever it is to 300 and open brackets again..

"healthDataNotificationShown": true,
"sidebar": {
"visible": true,
"size": 300
},

@ghost
Copy link

ghost commented Sep 1, 2019

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly.
This should surely work.
happy coding

Omg thank you so much man

@khadijanazih
Copy link

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly.
This should surely work.
happy coding

Thanks So Much! That Saved My Life ^^

@Suneelvarma5fi
Copy link

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly.
This should surely work.
happy coding

LOVE YOU

@ltrottier
Copy link

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly.
This should surely work.
happy coding

Worked for me. Thanks a lot !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests