Jump to content


Photo

Wrong ScrollBar Visibility


  • Please log in to reply
3 replies to this topic

#1 Shaman

Shaman
  • Members
  • 16 posts
  • Gender:Male

Posted 28 March 2009 - 01:50 PM

Hello, Boki.

ScrollBar may hide away when the last row partially invisible.
I think this behaviour is a bug.

Best regards.

Attached Files



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 28 March 2009 - 10:15 PM

Hello Shaman,

Can you please send me small sample project with this problem. I am confident that I can fix it.

Thanks

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Shaman

Shaman
  • Members
  • 16 posts
  • Gender:Male

Posted 29 March 2009 - 10:29 AM

Hello Boki.

Example is very easy (See attachment. Run and change form height).

I search the trivial solution by changing the order of strings in GetClientCount:
CODE
function TNxCustomInspector.GetClientCount: Integer;
var
i, Y: Integer;
begin
Result := 0;
Y := 0;
for i := VertScrollBar.Position to Pred(FItems.NodesCount) do
begin
if not FItems.Node[i].Hidden then
begin

//Old strings:
// Inc(Result);
// Inc(Y, RowHeight + GetGridSpace);
// if Y > ClientHeight then Exit;

// New strings:
Inc(Y, RowHeight + GetGridSpace);
if Y > ClientHeight then Exit;
Inc(Result);

end;
end;
end;
Check this out, please.

Best regards.

Attached Files



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 29 March 2009 - 06:30 PM

Hello Shaman,

I have check it and it seems fine. I will be glad to include your fix into official release.

Best regards and thanks
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users