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

  1. #1

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

    Hi!

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

    I made a sample project to ilustrate this.
    Is necessary download the attached image...
    Attachment 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>
    Last edited by Daniil; Mar 16, 2012 at 7:04 PM. Reason: [CLOSED]
  2. #2
    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>
  3. #3
    Is this a bug? If yes, and you will fixed it, I prefer waiting the fix this...
  4. #4
    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.
  5. #5
    Thanks a lot, Daniil!
  6. #6
    Please update from SVN.
  7. #7
    Hi Daniil!

    Works fine!

    Thanks a lot!

Similar Threads

  1. 2.x Beta Release 2
    By GKG4 in forum 2.x Help
    Replies: 4
    Last Post: May 11, 2012, 11:47 AM
  2. Replies: 2
    Last Post: Apr 13, 2012, 7:47 PM
  3. [CLOSED] Ext.net 2v Beta Release: Calendar
    By supera in forum 2.x Premium Help
    Replies: 2
    Last Post: Mar 28, 2012, 11:13 AM
  4. Replies: 4
    Last Post: Mar 19, 2012, 1:01 PM
  5. [CLOSED] Ext.net v2 Beta release: Top align don´t works
    By supera in forum 2.x Premium Help
    Replies: 2
    Last Post: Mar 16, 2012, 5:53 PM

Posting Permissions