PDA

View Full Version : [CLOSED] Ext.NET v2 Beta release: ext:Image borders with StyleSpec are unaligned.



supera
Mar 16, 2012, 3:23 PM
Hi!

After update my project with the Ext.net v2 release (I was working with DP1), the borders of my ext:Images are unaligned.
3948

I made a sample project to ilustrate this.
Is necessary download the attached image...
3947

The green border is the image...
The black border is the stylespec css.



<%@ Page Language="vb" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" Locale="pt-BR" />
<form id="form1" runat="server">
<ext:Panel runat="server" ID="paneLogin" Layout="AbsoluteLayout" BodyPadding="10" Icon="Cancel">
<Items>
<ext:Image runat="server" ID="imgError" X="15" Y="10" Height="100" Width="100" StyleSpec="border: 3px solid black" ImageUrl="~/image1.jpg"/>
<ext:Image runat="server" ID="Image2" X="15" Y="230" Height="80" Width="80" StyleSpec="border: 3px solid black" ImageUrl="~/image1.jpg"/>
</items>
</ext:Panel>
</form>
</body>
</html>

Daniil
Mar 16, 2012, 4:08 PM
Hi,

I would suggest to use an addition Container.

Example

<ext:Container
runat="server"
Height="100"
Width="100"
Layout="FitLayout"
StyleSpec="border: 3px solid black;">
<Items>
<ext:Image runat="server" ImageUrl="resources/images/image1.jpg" />
</Items>
</ext:Container>

supera
Mar 16, 2012, 4:27 PM
Is this a bug? If yes, and you will fixed it, I prefer waiting the fix this...

Daniil
Mar 16, 2012, 5:41 PM
Well, we don't think it's a bug, but decided to improve this functionality.

We will notice you when an update will be added to SVN.

supera
Mar 16, 2012, 5:46 PM
Thanks a lot, Daniil!

Daniil
Mar 16, 2012, 6:36 PM
Please update from SVN.

supera
Mar 16, 2012, 7:03 PM
Hi Daniil!

Works fine!

Thanks a lot!