Skip to content

Commit

Permalink
Fix: Using vertical scrollbar sometimes doesn't show the last row com…
Browse files Browse the repository at this point in the history
…pletely

see the issue for details

fixes #109
  • Loading branch information
hyyan committed Mar 11, 2019
1 parent d989363 commit 45695cc
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions BBjGridExWidget.bbj
Expand Up @@ -374,7 +374,7 @@ class public BBjGridExWidget extends BBjWidget
#setLicenseKey(lic!)
FI

html$="<html><body><script></script><div id='event-bridge-"+ str(#GRIDID$) +"' onClick='window.basisDispatchCustomEvent(this, event.payload)'></div><div id='" + str(#GRIDID$) + "' style=""height: 100%"" class=""ag-theme-balham""></div></body></html>"
html$="<html><head><style>html,body{margin:0;padding:0}</style></head><body><div id='event-bridge-"+ str(#GRIDID$) +"' onClick='window.basisDispatchCustomEvent(this, event.payload)'></div><div id='" + str(#GRIDID$) + "' style=""height: 100%"" class=""ag-theme-balham""></div></body></html>"

if (info(3,6)<>"5" and #Debug>0) then
call "BBjGridExWidget/util/EnableDebugger.bbj"
Expand All @@ -398,17 +398,9 @@ class public BBjGridExWidget extends BBjWidget
htmlview!.setText(html$)
REM fi
#HTMLView!=htmlview!

if INFO(3,6)<>"5" then
#HTMLView!.setLocation(-9,-9)
FI
FI

if INFO(3,6)="5" then
#HTMLView!.setSize(#getCanvas().getWidth(),#getCanvas().getHeight())
else
#HTMLView!.setSize(#getCanvas().getWidth()+16,#getCanvas().getHeight()+16)
FI
#HTMLView!.setSize(#getCanvas().getWidth(),#getCanvas().getHeight())
methodend

method protected void injectScript(BBjString script$)
Expand Down

0 comments on commit 45695cc

Please sign in to comment.