PDA

View Full Version : [CLOSED] [#595] How to set OffSetX and OffsetY property of badge in mvc?



macroe
Nov 14, 2014, 8:16 AM
Hi,
I'm using badge in razor, now I want to set OffsetX property and OffsetY property. In webform, we can use it like this:


<ext:Button
runat="server"
Text="Info"
Width="70"
Scale="Medium"
TextAlign="Left">
<Plugins>
<ext:Badge
runat="server"
Text="4"
UI="Info"
AlignmentSpec="r-r"
OffsetX="-10"
Cls="x-badge-noshadow"
/>
</Plugins>
</ext:Button>


But in mvc, there's no method, how can I do?


http://forums.ext.net/attachment.php?attachmentid=16241&stc=1

Thank you!

Daniil
Nov 14, 2014, 11:31 AM
Hi @macroe,

Thank you for the report. We will fix that.

For now please use

new Badge { OffsetX = -10 }
instead of

X.Badge()

Daniil
Nov 17, 2014, 2:13 PM
Created an Issue.
https://github.com/extnet/Ext.NET/issues/595

Fixed in the SVN trunk, revision #6161. It will go to v2.5.4 release.