Toad World® Forums

New editor window has horizontal scrollbar despite being completely empty

Hi,

This is a small thing, but when I open a brand new editor window/tab, there’s a horizontal scrollbar (also applies to the dbms_output and script output tabs). Is there any chance that this could be removed? I thought it might be related to the fact that I have the navigator panel up on the left, but removing that doesn’t make much of a difference.

I’m on Toad 12.7.0.49, 32 bit.

Thanks.

The component has a default scroll width of 2000 pixels. It will extend that range to show the width of the widest string. It does not; however, minimize the range. There is an explicit comment in the documentation that it is done this way for performance reasons.
Toad can manually take over scroll width handling, but I’ve not played with it to see what “performance reasons” actually means. Once things stabilize I’ll look at these minor issues and fix if there’s merit.

There are many differences between 12.7 and earlier versions. If at all possible I think that some of them should just slide. The old component was terribly inefficient especially as the length of text grew. To clone 100% of the functionality of earlier versions
means to reintroduce performance problems. In my opinion that’s a road to avoid for minor differences.

Michael

On 03/05/2015 12:00 PM, Boneist wrote:

New editor window has horizontal scrollbar despite being completely empty

Thread created by Boneist
Hi,

This is a small thing, but when I open a brand new editor window/tab, there’s a horizontal scrollbar (also applies to the dbms_output and script output tabs). Is there any chance that this could be removed? I thought it might be related to the fact that
I have the navigator panel up on the left, but removing that doesn’t make much of a difference.

I’m on Toad 12.7.0.49, 32 bit.

Thanks.

To reply, please reply-all to this email.

Stop receiving emails on this subject.

Or
Unsubscribe from Toad for Oracle - Beta
notifications altogether.

Toad for Oracle - Beta Discussion Forum

Flag
this post as spam/abuse.

Sure, I get that. *{:slight_smile: I promise I’m not just “complaining” for the sake of it! It’s just that the extra scrollbars take up real-estate on the screen and whilst that’s not a problem on my 22" widescreen monitors at work, it’s much more of an issue when I’m working on my 17" laptop at home. Running/editing a large query is already cumbersome enough with having to squish and extend the datagrid area, depending on what I’m working on.

I’m not just “complaining” for the sake of it

I understand. I haven’t seen you on here in a while so it’s good to have another active beta tester. This issue actually came up for the first time through QA just yesterday. I don’t recall a beta post on it yet.

I’ll take a look at this later, but probably not for 12.7. The component used by Toad is widely used by many other commercially available products and the documentation clearly says that automatic sizing causes poor performance. Who am I to doubt it? :slight_smile: I
don’t want to risk a catastrophic performance hit this late in the cycle.

On 03/05/2015 12:41 PM, Boneist wrote:

RE: New editor window has horizontal scrollbar despite being completely empty

Reply by Boneist
Sure, I get that. *{:slight_smile: I promise I’m not just “complaining” for the sake of it! It’s just that the extra scrollbars take up real-estate on the screen and whilst that’s not a problem on my 22" widescreen monitors at work, it’s much more of an issue when
I’m working on my 17" laptop at home. Running/editing a large query is already cumbersome enough with having to squish and extend the datagrid area, depending on what I’m working on.

To reply, please reply-all to this email.

Stop receiving emails on this subject.

Or
Unsubscribe from Toad for Oracle - Beta
notifications altogether.

Toad for Oracle - Beta Discussion Forum

Flag
this post as spam/abuse.

I haven’t seen you on here in a while

Yes, I finally managed to jump through all the hoops necessary for me to take part in the beta (and there were many! Gotta love red tape…). It’s nice to be back *{:slight_smile:

I’ll take a look at this later, but probably not for 12.7.

Sure; I get that we don’t want to affect performance! I only raised it because you don’t ask, you definitely don’t get! *{:slight_smile: It’s strange that it appears to auto-size on the vertical plane and not the horizontal though; I’ve gotta wonder what sorts of weird bugs they’ve got in their code! *{:wink:

Vertical scroll range is easy to manage without much calculation. All lines in the editor have a uniform height which is calculated to be the max height required to show text in each of the highlighting styles you have set. If all but one of your styles are
set to use 10pt font and one is set to 36pt then all lines will be sized to allow for 36pt font. Knowing the fixed line height, it’s just a matter of tracking how many lines exist. Calculating horizontal scroll requires calculating the width of every line
whenever text is modified. There could be some optimization there to only calculate the width of visible lines, keep track of the widest line, etc., but it’s still more calculation than just tracking number of lines and must be done more often. As soon as
I’m in a position to try some things out I’ll play with it.

Michael

On 03/06/2015 04:31 AM, Boneist wrote:

RE: New editor window has horizontal scrollbar despite being completely empty

Reply by Boneist

I haven’t seen you on here in a while

Yes, I finally managed to jump through all the hoops necessary for me to take part in the beta (and there were many! Gotta love red tape…). It’s nice to be back *{:slight_smile:

I’ll take a look at this later, but probably not for 12.7.

Sure; I get that we don’t want to affect performance! I only raised it because you don’t ask, you definitely don’t get! *{:slight_smile: It’s strange that it appears to auto-size on the vertical plane and not the horizontal though; I’ve gotta wonder what sorts of weird
bugs they’ve got in their code! *{:wink:

To reply, please reply-all to this email.

Stop receiving emails on this subject.

Or
Unsubscribe from Toad for Oracle - Beta
notifications altogether.

Toad for Oracle - Beta Discussion Forum

Flag
this post as spam/abuse.