Hello,
In my application I have a layout filled with widgets with 0 margins, and I want the layout to be resizable.
I am setting the edgeMarginSize to 10 so it will be easy for the user to drag the edges, but the problem is that the cursor only changes to the resize cursor on the single pixel edge, regardless of the value I set to edgeMarginSize.
In fact, the value edgeMarginSize does affect the area where resize can be initiated from, but the cursor does not change accordingly to reflect that area correctly.
The following simple example illustrates it - I have set the edgeMarginSize here to 50 in order to make the problem more noticeable (in my application I would want to set it to 10).
With this example, you can actually start resizing the layout fairly far away from the edge (up to 50 pixels), but the cursor will only change to the resize cursor on the single border pixel which makes it very confusing.
isc.Layout.create({
width: 300, height: 300,
border: "1px solid black",
canDragResize:true,
edgeMarginSize:50,
members: [isc.Label.create({
contents:"Resize from any side",
align: "center",
width:"100%", height:"100%",
})]
});
If I set a margin for the canvas member, then the cursor will change to resize cursor in the area of the margin, but in my application I need the canvas to cover all the layout without any margins (this is visual design decision).
I am using SmartClient v11.1p_2017-07-30
Thanks in advance.
Gil
In my application I have a layout filled with widgets with 0 margins, and I want the layout to be resizable.
I am setting the edgeMarginSize to 10 so it will be easy for the user to drag the edges, but the problem is that the cursor only changes to the resize cursor on the single pixel edge, regardless of the value I set to edgeMarginSize.
In fact, the value edgeMarginSize does affect the area where resize can be initiated from, but the cursor does not change accordingly to reflect that area correctly.
The following simple example illustrates it - I have set the edgeMarginSize here to 50 in order to make the problem more noticeable (in my application I would want to set it to 10).
With this example, you can actually start resizing the layout fairly far away from the edge (up to 50 pixels), but the cursor will only change to the resize cursor on the single border pixel which makes it very confusing.
isc.Layout.create({
width: 300, height: 300,
border: "1px solid black",
canDragResize:true,
edgeMarginSize:50,
members: [isc.Label.create({
contents:"Resize from any side",
align: "center",
width:"100%", height:"100%",
})]
});
If I set a margin for the canvas member, then the cursor will change to resize cursor in the area of the margin, but in my application I need the canvas to cover all the layout without any margins (this is visual design decision).
I am using SmartClient v11.1p_2017-07-30
Thanks in advance.
Gil
Comment