History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-3774
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: -- --
Assignee: Max Carlson
Reporter: Max Carlson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

Dynamically created multiline text has incorrect height

Created: 23/Mar/07 06:11 PM   Updated: 16/Nov/07 07:33 AM
Component/s: Kernel - DHTML
Affects Version/s: 4.0.0
Fix Version/s: 4.0.2

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 4,486
Runtime: N/A
Fix in hand: False


 Description  « Hide
See this example (from http://forum.openlaszlo.org/member.php?u=10854 Squids on the forums):

<?xml version="1.0" encoding="UTF-8" ?>
<canvas width="900" height="2500">
  
  <class name="post" bgcolor="yellow">
    <attribute name="posttext" value="null" type="string"/>
    <text name="thetext" multiline="true" width="110" text="${parent.posttext}"/>
  </class>
  
   <view layout="axis:y;spacing:20" y="20">
  <text fontsize="18">Problem 2</text>
  
  <view x="20" bgcolor="0xeeeeee">
    <text fontsize="12">There is an edittext below but the bevel does not show up</text>
    <view layout="axis:x;spacing:5" y="20">
      <edittext name="entertext" multiline="true" width="200" height="300">Type some text here please</edittext>
      <button>create new text object
        <handler name="onclick">

var newtextvar = parent.entertext.getText();
var newpostvar = new post(newtextzoneid,{x:0,y:0,posttext:newtextvar});
Debug.write(newpostvar.thetext.getText());
</handler>
      </button>
    </view>
    <view id="newtextzoneid" x="450" width="400" height="300" bgcolor="0xdddddd">
      <wrappinglayout spacing="2" yinset="5" xinset="5"/>
      <text fontsize="9">new text objects are created here</text>
    </view>
  </view>
  
  </view>
</canvas>


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Swaney - 16/Nov/07 07:33 AM
I'm running into the same problem when using replicated rows without using a grid.

In my case, I'm also using a tab and tabpane. I need to isolate this more to determine which one is causing the problem.

I'm convinced it has to do with the use of 'width=${parent.width}' as I've seen weird effects when changing the values to '${parent.width+16}' or '${parent.width-16}'.