Couple of questions about the browser widget

Mike Bonner bonnmike at gmail.com
Wed Aug 16 19:23:49 EDT 2017


Strange.  when I run my little test stack and set the height of the browser
+ the 23 extra pixels, the vertical scrollbar goes away on its own.  Gotta
get my other machines back up and running so I can test on them.  Why there
would be scrollbars for a page with nothing in it is beyond me.
Out of curiosity.. If you nudge the width and height of the widget when
empty, do the scrollbars go away?  On my system (win 10, and lc 9 dp8)  I
have no control over whether the scrollbars appear or not either, other
than sizing the widget to the point where all the content fits.  But they
do poof for me when the sizes are right.

The checkboxes for me on 9 dp8 are checked. One can uncheck them but it
doesn't take.  I do think the widget just lets webkit handle it the default
way.. Scrollbars as needed. But if that's the case, having check-boxes in
the inspector that do nothing would be a bug of a type also.



On Wed, Aug 16, 2017 at 5:04 PM, Terry Judd via use-livecode <
use-livecode at lists.runrev.com> wrote:

> 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
>
>
> _______________________________________________
> 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