EwTableList >> isColumnFullyVisible: bug

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

EwTableList >> isColumnFullyVisible: bug

Postby a62754 » Wed Oct 20, 2010 4:39 am

i have a table with multiple rows and columns on it and there is are H and V scrollbars on it.
if i make a colum fully visible using:
widget makeColumnVisible: 10 forceFullyVisible: true.
then i check if the column has been made fully visible by doing:
widget isColumnFullyVisible: 10
it returns false. On the window, i can see that it did make the column fully visible.
this happens in all cases where column is made exposed to the right of the window or the left.

looking into code, i can see a bug:
Code: Select all
isColumnFullyVisible: anIndex
   "Answer true if the column at anIndex is fully visible on the screen, false if it is not."

   | col colX |

   self exposedColumns isEmpty ifTrue: [^false].
   col := self columns at: anIndex.
   colX := col scrolledX - self horizontalScrollOffset.
   ^colX > 0 and: [             
                            (self isColumnPartiallyVisible: anIndex) and: [
         colX + col widthWithSeparator + self totalEmphasis < self workWidth and: [
            col leftClip isNil]]]


colX > 0 should be colX >= 0and
colX + col widthWithSeparator + self totalEmphasis < self workWidth
should be
colX + col widthWithSeparator + self totalEmphasis <= self workWidth

Actually, when the api makes the colum visible, the edge of the cell coinsides with the scrollbar or the left margin (depeding on how the cell was made visible) - and this creates a boundary condition for this code above.
is there a different approach that i can use here? maybe make visible and then code to make the cell a "bit more" visible?
a62754
 
Posts: 18
Joined: Thu Jul 01, 2010 2:03 am

Re: EwTableList >> isColumnFullyVisible: bug

Postby a62754 » Wed Dec 15, 2010 2:36 am

can someone from Instantiations open a case for this? or do you need more info?

Also, in window builder pro i see a row column widget. whats the corresponding widget in Composition Editor. I don't have much experience with composition editor so i might be way off here. Can someone guide me to the row column widget in composition editor?
A 'vanilla' version of the EwTAbleList?
a62754
 
Posts: 18
Joined: Thu Jul 01, 2010 2:03 am

Re: EwTableList >> isColumnFullyVisible: bug

Postby a62754 » Tue Dec 21, 2010 2:43 am

Is anyone from Instantiations looking at this?
a62754
 
Posts: 18
Joined: Thu Jul 01, 2010 2:03 am

Re: EwTableList >> isColumnFullyVisible: bug

Postby tc » Tue Dec 21, 2010 9:27 pm

Hello,

I opened case 47985 for this issue.

Is anyone from Instantiations looking at this?

Yes, some folks are on vacation, some illnesses but this is being looked at.

--tc
tc
Moderator
 
Posts: 304
Joined: Tue Oct 17, 2006 7:40 am
Location: Raleigh, NC


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: No registered users and 1 guest

cron