I have also noticed this scrolling bug.  I think it has something to do with how we detect the boundries.  I have modified my version with the following code:

the following lines in lyrListener.mousedown

var b=lyr.parent.getHeight();
var r=lyr.parent.getWidth();

should now read:

lyr.DragSizeFix=false;
if (lyr.w==null || lyr.h==null) {
    lyr.DragSizeFix=true;
    if (lyr.h==null) { lyr.DragHFix=true; lyr.h=lyr.getContentHeight(); };
    if (lyr.w==null) { lyr.DragWFix=true; lyr.w=lyr.getContentWidth(); };
};

and BELOW the following line

lyr.invokeEvent('dragend',de);

you should add:

if (lyr.DragSizeFix) {
    delete lyr.DragSizeFix;
    if (lyr.DragHFix) { delete lyr.DragHFix; lyr.h=null; };
    if (lyr.DragWFix) { delete lyr.DragWFix; lyr.w=null; };
};

This is a bandaid fix and I'll try see if I can find a better version soon.  I thought this is quicker (execution wise) than recalculating the content size while the mouse is dragging.  I have quickly copied this out of my afroapi codebase.  if there are any conversion errors, just email me and I'll see if I can get it right. : )

Richard Bennett wrote:

Like Colin said, it's probably easiest to use an inline div for positioning,
but there are still quite a few issues to solve before Ie/NS4/NS6 work the
same.
I put up two examples here:
http://www.richardinfo.f2s.com/dynapi/php/examples.html
(scroll to bottom - Mark_Fletcher_Examples)
The first example does what you wanted, with as side effects, that if you
add to much other content to the page, NS6 doesn't show scroll-bars anymore,
and that NS4 can go completely crazy, if you wiggle the scroll-bars enough.
The second example is much nicer I think, it uses Chris Shreve's
lite-scrollpane. The only thing is that in NS6 you can pull the
scroll-button out of it's groove, but that's a drag-boundary bug. (see
Chris_Shreve_Examples too).

Cheers,
Richard Bennett

[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to DynAPI2.53)
visit the DynAPI homepage (and FAQ) ::
http://dynapi.sourceforge.net/dynapi/index.php?menu=1
Browse (and search) the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi

----- Original Message -----
From: "Mark Fletcher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 15 May, 2001 12:29
Subject: [Dynapi-Help] Positioning DynAPI Layers within Table Cells

> Hi,
>
> Apologies if my previous mail was unclear... reading over it again I found
> that it didnt really express the problem.
>
> Ive been looking over the DynAPI API documentation, Ive been looking over
> the functions
>
> moveTo(), setX, setY etc... is my understanding correct that these
functions
> use the top left hand corner of the canvas as the origin for positioning?
Is
> there any other way to set an alternative origin ie, for example, if I
have
> a table whose properties change from page to page, I would like to include
a
> scrolling pane within a table cell. Is there anyway to set the position of
> the scrolling pane relative to the table cell?
>
> Cheers,
>
> Mark
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
 

Reply via email to