Couple of questions about the browser widget

Terry Judd terry.judd at unimelb.edu.au
Wed Aug 16 19:04:27 EDT 2017


Hi Mike - I don’t think it’s an issue in my case. I’m displaying pretty simple pages – just text and images, no columns or fancy layouts. Nothing that is displayed will be wider than the browser (images are resized before being loaded to ensure this) so no horizontal scrolling will be required under any circumstances.

Anyway, you don’t seem to be able to toggle either scrollbar off either using the property inspector or via script, even when the browser widget has no content (no htmlText or url assigned). Given that I’m setting the height of the widget so that it doesn’t need to scroll vertically and horizontal scrolling is irrelevant then the inability to toggle these properties isn’t a problem. Still, it seems like a bug? Interestingly, under 8.1.4 both vScrollbar and hScrollbar are checked in the property inspector (and stuck like that) while on 8.1.6 they are both unchecked (and stuck like that).

Regards,

Terry...

On 17/08/2017 6:33 am, "use-livecode on behalf of Mike Bonner via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:

    hmm.  If the width of the page fits without need of a horizontal scrollbar,
    it should disappear, so maybe your code should check to see if its false
    first, then add the 23 pixels or not, depending. (I also can't test to see
    if its 23 on every platform at the moment)
    
    I'm wondering if you're just not allowed to set a bar to false when the
    content is too wide or high and vice versa.
    
    On Wed, Aug 16, 2017 at 2:10 PM, Terry Judd via use-livecode <
    use-livecode at lists.runrev.com> wrote:
    
    > Perfect! Interesting about the hScrollbar setting – I seem to be unable to
    > deselect that (or vScrollbar) in the property editor – or change them via
    > script (both are stuck on true).
    >
    > Thanks,
    >
    > Terry...
    >
    > On 16/08/2017 11:49 pm, "use-livecode on behalf of Mike Bonner via
    > use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of
    > use-livecode at lists.runrev.com> wrote:
    >
    >     Ty HH and jonathan, its working now for me.
    >
    >     Terry:
    >     I have this in my temporary file..
    >     <html><body>
    >     Hi!
    >     <script>
    >     window.onload = function(e) {
    >     liveCode.lcHeight(document.body.scrollHeight);
    >     }
    >
    >     </script>
    >     <img src="file:///C:/Users/Mike/Desktop/dtstuff/billiewow.jpg">
    >     </body>
    >     </html>
    >
    >     It loads my picture fine, and (now that i have capitalization right..
    > DOH)
    >     it sends a livecode message called lcHeight which is in the
    >     javascripthandlers for the widget it loads into.
    >
    >     For the handler in LC I have this..
    >
    >     command lcHeight pHeight
    >          set the height of widget 1 to pHeight + 23 -- +23 because I have
    > the
    >     horizontal scrollbar showing
    >          set the topleft of widget 1 to the topleft of this card
    >     end lcHeight
    >
    >     On Wed, Aug 16, 2017 at 6:42 AM, Terry Judd via use-livecode <
    >     use-livecode at lists.runrev.com> wrote:
    >
    >     > Thanks hh that's really helpful stuff. Thanks also to Jonathan and
    > Mike.
    >     >
    >     > Regards,
    >     >
    >     > Terry...
    >     >
    >     > Sent from my iPad
    >     >
    >     > > On 16 Aug 2017, at 9:00 pm, hh via use-livecode <
    >     > use-livecode at lists.runrev.com> wrote:
    >     > >
    >     > > Additional to Jonathan's instructions.
    >     > >
    >     > > Basic:
    >     > > http://forums.livecode.com/viewtopic.php?f=7&t=29589
    >     > >
    >     > > Medium: Get MouseEvents from browser widget
    >     > > http://forums.livecode.com/viewtopic.php?p=154496#p154496
    >     > >
    >     > > and others there (7 Browser Widget usage examples) ...
    >     > >
    >     > > _______________________________________________
    >     > > use-livecode mailing list
    >     > > use-livecode at lists.runrev.com
    >     > > Please visit this url to subscribe, unsubscribe and manage your
    >     > subscription preferences:
    >     > > http://lists.runrev.com/mailman/listinfo/use-livecode
    >     > >
    >     >
    >     >
    >     > _______________________________________________
    >     > use-livecode mailing list
    >     > use-livecode at lists.runrev.com
    >     > Please visit this url to subscribe, unsubscribe and manage your
    >     > subscription preferences:
    >     > http://lists.runrev.com/mailman/listinfo/use-livecode
    >     >
    >     _______________________________________________
    >     use-livecode mailing list
    >     use-livecode at lists.runrev.com
    >     Please visit this url to subscribe, unsubscribe and manage your
    > subscription preferences:
    >     http://lists.runrev.com/mailman/listinfo/use-livecode
    >
    >
    >
    > _______________________________________________
    > use-livecode mailing list
    > use-livecode at lists.runrev.com
    > Please visit this url to subscribe, unsubscribe and manage your
    > subscription preferences:
    > http://lists.runrev.com/mailman/listinfo/use-livecode
    >
    _______________________________________________
    use-livecode mailing list
    use-livecode at lists.runrev.com
    Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
    http://lists.runrev.com/mailman/listinfo/use-livecode
    



More information about the Use-livecode mailing list