Hi David, I took a quick look at the source of the 'pageHeights' property implementation and can confirm it's not taking these properties into account. And since the 'pageRanges' property implementation follows the same approach, I'm sorry to say that it won't take them into account either.
Not sure how you can script a workaround for this one. Maybe using the formattedHeight of individual line chunks, but that might not cover all corner cases. So I suggest you head on over to http://quality.runrev.com and create a bug entry. For the curious who enjoy reading C++ code, the clue is in file <https://github.com/runrev/livecode/blob/master/engine/src/paragraf.cpp> The following methods are at the core of these property value calculations: -> Boolean MCParagraph::pageheight(...) -> Boolean MCParagraph::pagerange(...) And neither look at the paragraph attributes... Best regards, Jan Schenkel. ===== Quartam Reports & PDF Library for LiveCode www.quartam.com ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) -------------------------------------------- On Wed, 1/15/14, David Epstein <dfepst...@comcast.net> wrote: Subject: pageHeights ignores new line properties in fields? To: use-livecode@lists.runrev.com Date: Wednesday, January 15, 2014, 4:43 PM I find that the pageHeights function does not take account of the newer lines-in-fields properties like padding, spaceAbove, spaceBelow, etc. If I set the scroll of the field to line 1 of the pageHeights of that field, it will ordinarily put the first line of "page 2" at the top of the field. But if I have, say, set the padding of line 3 of that field to 15, setting the scroll in this way may result in only the bottom half of a line of text appearing at the top of the field. (It might accidentally work properly for some cases, but trying a few different values illustrates the problem.) Can anyone confirm this, and has anyone already scripted a workaround? Thanks very much. David Epstein _______________________________________________ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode