Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Under IE10, how to acheive a settled shape of the radio button with different height/width?

$
0
0

Hi,

In IE10, the shape of a radio button will change depending on the value of 'Height' and 'Width':

IE10

But in IE8, the shape of a radio button is settled no matter 'Height' or 'Width' changes:

under IE8

The source code is following:

<html><body><div><input id="RadioButton1" style="height: 8px;    width: 40px" checked="True" type="radio" value="N" name="SM1" /></div><div><input id="RadioButton1" style="height: 13px;    width: 40px" checked="True" type="radio" value="N" name="SM2" /></div><div><input id="RadioButton1" style="height: 25px;    width: 40px" checked="True" type="radio" value="N" name="SM3" /></div></body></html>
In our project, by using of VS SDK to draw a html painter in windows form, then the radio button is different between IE10 and IE8.

The workaround could be to remove height and width, but it requires reset each button, not good enough...

I triedIHTMLDocument2.execCommand("LiveResize",false,false), it doesn't wok.

Is there another switch/attribute to lock the size of radio button in IE10? just as IE8.

Thanks in advance


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>