lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev forms and partial_display


From: Leonid Pauzner
Subject: Re: lynx-dev forms and partial_display
Date: Fri, 28 Aug 1998 17:51:39 +0400 (MSD)

> > Bug:
> > When a page contains <FORM ...> markup and if the PARTIAL_DISPLAY is
> > true then while the page is loaded incrementally all the <INPUT ...>
> > lines are displayed on the first line of first current page until
> > partial_display finishes.
> >

The problem is not fixed yet.
As I understand, two function manipulating with the forms input:

/*
 *  Assign a form input anchor.
 *  Returns the number of characters to leave
 *  blank so that the input field can fit.
 */
PUBLIC int HText_beginInput ARGS3(
        HText *,                text,
        BOOL,                   underline,
        InputFieldData *,       I)

/*
**  This function trims blank lines from the end of the document, and
**  then gets the hightext from the text by finding the char position,
**  and brings the anchors in line with the text by adding the text
**  offset to each of the anchors.
*/
PUBLIC void HText_endAppend ARGS1(
        HText *,        text)


First one invoked "on the fly" while the second called only once
to substitute the text in all reserved places
WHEN the document already pass the SGML/HTML stage completely.

Now, in display_partial mode, we try to repaint the screen
(via page_display()) before the second function is invoked.
Probably, the input values wrongly displayed at the top line
come from the variable not FREE'ed somethere in the between.

I saw several comments there around suscribed with "LE & FM"
- maybe Laura Evans will look into the code?

(In fact, hightext from the second function should be merged
into the first function, so it calculate the size
and fill out the text the same time. No?).


Leonid.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]