I am receiving this error message:
"java.lang.IllegalArgumentException: Layout: -1 < 0" on this line:
lblClass.Height = SU.MeasureMultilineTextHeight(lblClass, lblClass.Text)
Erel pointed out the problem in this post
However, my issue is that I am using:
scvMain.Panel.LoadLayout("MyLayout")
MyLayout contains all of the labels (including lblClass). I am assuming the error is being thrown because the inner panel width is set to -1. I have tried changing it with:
scvMain.Panel.Width = 100%x
But that doesn't work. I was hoping to continue using the layout file to reduce the amount of code needed. Is there any other way?
"java.lang.IllegalArgumentException: Layout: -1 < 0" on this line:
lblClass.Height = SU.MeasureMultilineTextHeight(lblClass, lblClass.Text)
Erel pointed out the problem in this post
However, my issue is that I am using:
scvMain.Panel.LoadLayout("MyLayout")
MyLayout contains all of the labels (including lblClass). I am assuming the error is being thrown because the inner panel width is set to -1. I have tried changing it with:
scvMain.Panel.Width = 100%x
But that doesn't work. I was hoping to continue using the layout file to reduce the amount of code needed. Is there any other way?