Skip to content

Commit

Permalink
load html$ after setting the event to avoid race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wald committed Mar 6, 2018
1 parent 3957107 commit 0539bc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BBjGridExWidget.bbj
Expand Up @@ -184,10 +184,11 @@ class public BBjGridExWidget extends BBjWidget
dummy$=stbl("!OPTIONS","JAVAFX_HTMLVIEW=true")

html$="<html><body><div id='eventTransporterDiv' onClick='bbj_grid_widget_post_event(event);'></div><div id=""grid"" style=""height: 100%"" class=""ag-theme-fresh""></div></body></html>"
htmlview! = #getCanvas().addHtmlView(101,0,0,#getCanvas().getWidth(),#getCanvas().getHeight(),html$)
htmlview! = #getCanvas().addHtmlView(101,0,0,#getCanvas().getWidth(),#getCanvas().getHeight(),"")
htmlview!.setCallback(BBjAPI.ON_PAGE_LOADED,#this!,"onLoad")
htmlview!.setCallback(BBjAPI.ON_NATIVE_JAVASCRIPT,#this!,"onNativeEvent")
htmlview!.setOpaque(0)
htmlview!.setText(html$)

#HTMLView!=htmlview!
if INFO(3,6)<>"5" then
Expand Down

0 comments on commit 0539bc8

Please sign in to comment.