简体   繁体   English

垂直滚动条在IE 11中对于textarea不可见

[英]Vertical Scrollbar is not visible in IE 11 for textarea

I have on TextArea and in that I have given a vertical scrollbar, My textarea is readonly. 我在TextArea并且给了一个垂直滚动条,我的textarea是只读的。 But what i noticed here is my scrollbar is not visible in IE11. 但是我在这里注意到的是我的滚动条在IE11中不可见。 Top and bottom arrow is coming but scroll bar is not coming. 顶部和底部箭头会出现,但滚动条不会出现。

My Code : 我的代码:

Ext.create('Ext.form.FormPanel', {
    title      : 'Sample TextArea',
    width      : 400,
    bodyPadding: 10,
    renderTo   : Ext.getBody(),
    items: [{
        xtype     : 'textareafield',
        grow      : true,
        name      : 'message',
        fieldLabel: 'Message',
       /* disabled : true,*/
       readOnly : true,
        value : 'abcaaaaaaaaasssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssswwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwweeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
        anchor    : '100%'
    }]
});

When I run this into fiddler in IE11 I'm not able to see scroll. 当我在IE11中将它运行到提琴手中时,我看不到滚动。 I attach the screenshot. 我附上截图。

提琴手形象

Any suggestion or help. 任何建议或帮助。

That is just IE being IE ... if you provide specific height (like in this case I did with 100 ) to that textarea IE will show the scrollbar ... it is just by default ugly looking one with two big arrows: IE就是IE ...如果您为该textarea提供特定的height (例如,在本例中为100 ),则IE将显示滚动条...默认情况下,丑陋的外观看起来带有两个大箭头:

Ext.create('Ext.form.FormPanel', {
title      : 'Sample TextArea',
width      : 400,
bodyPadding: 10,
renderTo   : Ext.getBody(),
items: [{
    xtype     : 'textareafield',
    grow      : true,
    height    : 100,
    name      : 'message',
    fieldLabel: 'Message',
   /* disabled : true,*/
   readOnly : true,
    value : 'abcaaaaaaaaasssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssswwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwweeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
    anchor    : '100%'
}]
});

See it here 在这里看到

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM