Gutter - Width

Questions on using RSyntaxTextArea should go here.

Moderator: robert

Gutter - Width

Postby rdion » Sun Feb 26, 2012 10:01 am

Hi,

how can i set the width of a Gutter manually?
I want the Gutter to have a fixed width.

Thanks and best regards
Rolf
rdion
 
Posts: 2
Joined: Sun Feb 26, 2012 9:56 am

Re: Gutter - Width

Postby robert » Mon Feb 27, 2012 12:26 am

Hi Rolf,

There's currently no way to control the Gutter width. If you'd like to see this, please add a Feature Request on the project's SourceForge page so it can be tracked.

That said, if you're cool with hacking the source yourself, the only part of the Gutter that's variable width is the line number list. I can see where it could be considered jarring, especially when it resizes when going from 9 lines to 10. You can modify org.fife.ui.rtextarea.LineNumberList.java, changing the updateCellWidths() method to always return a fixed size.
User avatar
robert
 
Posts: 760
Joined: Sat May 10, 2008 5:16 pm

Re: Gutter - Width

Postby rdion » Mon Feb 27, 2012 7:45 am

Hi Robert,

thanks for your reply.
I will try to change the class you mentioned above.

I hope this feature is part of one of the next versions ;)

Best regards
Rolf
rdion
 
Posts: 2
Joined: Sun Feb 26, 2012 9:56 am


Return to Help

Who is online

Users browsing this forum: No registered users and 4 guests

cron