![nedit bugs nedit bugs](https://www.clker.com/cliparts/3/5/e/9/13594863501853529451Sodipodi.svg.med.png)
So, unless you can think of a good algorithm for quickly calculating the maximum line width, the code will stay as-is. If an efficient and non-costly way of doing this The nedit code and this could involve a lengthy calculation for Iĭidn't do this because I didn't see any easy way to do that using Line in the entire buffer is and base the scrollbar on that. * The other alternative would be to keep track of what the longest Trust me, I tried it and it looks really bad. Visually displeasing "bounce" effect when the vertical scrollbar isĭragged. Rearranges the widget to make room for it, this would create a very Widget dynamically allocates the space for the scrollbar and Space for the scrollbar even when it's not used. Visible lines is what the original nedit does, but it always wastes * Dynamically creating a horizontal scrollbar based on the currently
![nedit bugs nedit bugs](https://image.slidesharecdn.com/ayudamigracion-121121134825-phpapp01/95/ayuda-migracion-2-638.jpg)
Is because the alternatives are unatractive:
![nedit bugs nedit bugs](https://slideplayer.com/slide/11878410/66/images/90/Text+editors+Graphical+text+editors+Fine+for+most+needs+nedit.jpg)
Is a vertical scrollbar, a horizontal is always created too. Looking into this I suspect this was done to avoid an infinite loop, but I'll check.Ĭomments from the Fl_Text_Display::resize() code:ĭecide if the horizontal scroll bar needs to be visible. Horiz scroll bar should not appear unless there's somewhere to scroll to. Until text scrolls off bottom vert AND horiz scrollbar appear It seems if the vertical scrollbar appears, the horizontal scrollbar will also automatically appear.ġ) Run the editor.cxx application (no scrollbars)Ģ) Enter many short lines of text (no wider than screen) unable to compile the softwareģ - Applies to all machines and operating systemsįl_Text_Display: horizontal scrollbar appears unnecessarilyĮven if there is no text going beyond the right edge of the text window, the horizontal scrollbar can appear.