Yeah, there’s no problem with the browser display here either – it sizes
correctly and no scrollbars are displayed. The issue is purely to do with the
checkboxes in the property inspector being non-responsive. I’ll bug report it
when I have a bit of spare time tomorrow.
Terry...
On 17/08/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
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
Maybe Try this:
body {
overflow: hidden;
}
Also, the internal width or height of content in the browser is not necessarily
the same as the width as measured by LC.
Things like the screen pixel scale can have an effect.
Sent from my iPhone
> On Aug 16, 2017, at 4:33 PM, Mike Bonner via
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
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"
Ty HH and jonathan, its working now for me.
Terry:
I have this in my temporary file..
Hi!
window.onload = function(e) {
liveCode.lcHeight(document.body.scrollHeight);
}
It loads my picture fine, and (now that i have capitalization right.. DOH)
it sends a livecode message called lcHeight
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
> wrote:
>
> Additional to Jonathan's instructions.
>
> Basic:
>
Additional to Jonathan's instructions.
Basic:
http://forums.livecode.com/viewtopic.php?f=7=29589
Medium: Get MouseEvents from browser widget
http://forums.livecode.com/viewtopic.php?p=154496#p154496
and others there (7 Browser Widget usage examples) ...
If you post the line that sends a message from JS to LC, we should be able to
tell you what is wrong.
The code looks like this:
JS
liveCode.myHandler('JSMessage','test');
LC
On myHandler pMessage, pData
If pMessage = "JSMessage" then
Answer pData
End if
End myHandler
This will produce an LC
Hi Mike – yeah thanks, the temp file approach for setting the browser widget
and getting an image to display works well so maybe easiest to go that way. I’m
still steeling myself for a foray into javascript so haven’t tried anything on
that front yet. I’ve got some Dropbox library related stuff
I haven't managed yet. (can't get it to fire, but hey.. did I mention i'm
no good at javascript?)
Also I noticed, setting the htmltext of the widget seems to run through a
urlencode. (I had a sample page in a field and was setting the htmltext to
it, but it got totally munged.. So I've been
Thanks for your help Mike – I’m no good at Javascript either ;) but thankfully
there is plenty of stuff out there on the web written by people that are. I’ll
give it a go and see if I can make it work.
Regards,
Terry...
On 16/08/2017 10:23 am, "use-livecode on behalf of Mike Bonner via
For the second question, if your htmltext contains a javascript function
that returns document.body.scrollHeight you should be able to get the
height that way.I'm not any good at javascript, but how it would
probably work would be to have something like this..
window.onload = function(e){
14 matches
Mail list logo