Redraw
I get this in the log:
03:19:22.622:TMR9:INFO:resize:isc_OID_0:resize of drawn component: new width/height: 1198,750, old width/height: 1199,750, delta width/height: -1,0 [Stack trace not supported in this browser]
03:19:22.631:RDQ1:INFO:sizing:isc_OID_1:Specified size: 100x100, drawn scroll size: 100x100, border: 0x0, margin: 0x0, old size: 100x100, reason: redraw
03:19:22.632:RDQ1:INFO:sizing:isc_OID_2:Specified size: 100x100, drawn scroll size: 0x100, border: 0x0, margin: 0x0, old size: 55x100, reason: redraw
03:19:22.633:RDQ1:INFO:sizing:isc_OID_0:Specified size: 1198x750, drawn scroll size: 100x100, border: 0x0, margin: 0x0, old size: 100x100, reason: redraw
03:19:22.661:TMR3:INFO:resize:isc_OID_0:resize of drawn component: new width/height: 1198,749, old width/height: 1198,750, delta width/height: 0,-1 [Stack trace not supported in this browser]
03:19:22.665:RDQ5:INFO:sizing:isc_OID_1:Specified size: 100x100, drawn scroll size: 100x100, border: 0x0, margin: 0x0, old size: 100x100, reason: redraw
03:19:22.665:RDQ5:INFO:sizing:isc_OID_2:Specified size: 100x100, drawn scroll size: 0x100, border: 0x0, margin: 0x0, old size: 0x100, reason: redraw
03:19:22.665:RDQ5:INFO:sizing:isc_OID_0:Specified size: 1198x749, drawn scroll size: 100x100, border: 0x0, margin: 0x0, old size: 100x100, reason: redraw
03:19:22.712:TMR7:INFO:resize:isc_OID_0:resize of drawn component: new width/height: 1197,749, old width/height: 1198,749, delta width/height: -1,0 [Stack trace not supported in this browser]
03:19:22.716:RDQ9:INFO:sizing:isc_OID_1:Specified size: 100x100, drawn scroll size: 100x100, border: 0x0, margin: 0x0, old size: 100x100, reason: redraw
03:19:22.718:RDQ9:INFO:sizing:isc_OID_2:Specified size: 100x100, drawn scroll size: 0x100, border: 0x0, margin: 0x0, old size: 0x100, reason: redraw
03:19:22.718:RDQ9:INFO:sizing:isc_OID_0:Specified size: 1197x749, drawn scroll size: 100x100, border: 0x0, margin: 0x0, old size: 100x100, reason: redraw
03:19:22.763:TMR1:INFO:resize:isc_OID_0:resize of drawn component: new width/height: 1197,747, old width/height: 1197,749, delta width/height: 0,-2 [Stack trace not supported in this browser]
03:19:22.768:RDQ3:INFO:sizing:isc_OID_1:Specified size: 100x100, drawn scroll size: 100x100, border: 0x0, margin: 0x0, old size: 100x100, reason: redraw
03:19:22.769:RDQ3:INFO:sizing:isc_OID_2:Specified size: 100x100, drawn scroll size: 0x100, border: 0x0, margin: 0x0, old size: 0x100, reason: redraw
03:19:22.769:RDQ3:INFO:sizing:isc_OID_0:Specified size: 1197x747, drawn scroll size: 100x100, border: 0x0, margin: 0x0, old size: 100x100, reason: redraw
03:19:22.811:TMR5:INFO:resize:isc_OID_0:resize of drawn component: new width/height: 1196,747, old width/height: 1197,747, delta width/height: -1,0 [Stack trace not supported in this browser]
03:19:22.818:RDQ7:INFO:sizing:isc_OID_1:Specified size: 100x100, drawn scroll size: 100x100, border: 0x0, margin: 0x0, old size: 100x100, reason: redraw
03:19:22.818:RDQ7:INFO:sizing:isc_OID_2:Specified size: 100x100, drawn scroll size: 0x100, border: 0x0, margin: 0x0, old size: 0x100, reason: redraw
03:19:22.819:RDQ7:INFO:sizing:isc_OID_0:Specified size: 1196x747, drawn scroll size: 100x100, border: 0x0, margin: 0x0, old size: 100x100, reason: redraw
isc_OID_0 is Canvas (in the test-case), and has setRedrawOnResize() set to false, so I’m not sure why it’s logging a resize here (other than maybe it doesn’t have a choice but to resize given that it is a child of the RootPanel. I dunno the internals of SmartGWT, but I’m learning more of them than I wanted to know in pursuit of this issue. isc_OID_1 is the SmartGWT Label, and isc_OID_2 is the pure GWT Label. The trouble is, the GWT <div> containing the actual text of the label (that resides inside isc_OID_2) is gone after the resize. The SmartGWT “wrapper” apparently remains.
I’d love to not be trying to use a GWT component – what I really need is an Image not a Label. I just used Label in the test-case because it’s simple and demonstrates the same problem. As I said, what I really need is an Image, but the SmartGWT Img class does not provide an onLoad() and onError() handler like the GWT one does, and I need that. If you can show me how to accomplish that, I’ll be largely satisfied. But it seems that SmartGWT is written on top of GWT, interoperability should be a goal, not a happy coincidence. We’re not talking about two completely unrelated Ajax frameworks here – I’m not mixing YUI and SmartGWT – I’m mixing GWT and SmartGWT.
Brett
p.s. I don’t know why I’m not getting stack traces, I’ve tried with both Firefox and Safari. I’m on Mac OS X.