ExtJS qtip和消息框问题,根据浏览器,文本被截断/丢失 [英] ExtJS qtip and messagebox issues, text is truncated/missing depending on the browser

查看:121
本文介绍了ExtJS qtip和消息框问题,根据浏览器,文本被截断/丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用EXTJS 4(4.2.1.883),并且在不同的浏览器(Chrome,IE和Firefox)上出现qtips和消息框问题,文本的长度被截断了.

I am using EXTJS 4 (4.2.1.883) and experiencing issues with qtips and message boxes, on different browsers (Chrome, IE and Firefox) the text is getting truncated at different lengths.

  1. 文本字段的提示在不同的浏览器中会以不同的长度被截断,这是我为一个文本字段设置的内容,在firefox中,我会得到"New U"

  1. qtips on textfields getting truncated at different lengths on different browsers, here is what I have set for one textfield, in firefox I would get 'New U'

msgTarget:'side', maxLength:15, 执行MaxLength:是的, blankText:需要新的用户名"

msgTarget: 'side', maxLength: 15 , enforceMaxLength: true, blankText: 'New UserName is required '

Ext.Msg.show,味精被截断,不同的浏览器截断不同长度的文本,在某些情况下,我只能看到一两行味精,而其余部分则看不见.

Ext.Msg.show, the msg is getting truncated, different browsers are truncating text at different lengths, in some cases I can only see one or two lines of the msg and the remainder is not visible.

    Ext.MessageBox.show({
        title: 'There is an issue here', 
        msg:statusErrorMsg,
        buttons: Ext.MessageBox.OK
    });

Firefox表现最差,其次是IE,然后是chrome.

Firefox seems to be the most badly behaved, followed by IE and then chrome.

我的理解是EXTJS可以处理此类格式问题,但它的行为不符合预期,这里有关于我在做什么错的任何想法吗?

My understanding was that EXTJS would handle such formatting issues but it is not behaving as expected, any ideas here on what am I doing wrong?

谢谢.

推荐答案

通过将消息框更改为Ext.Msg.show来解决此问题,qtip问题是extjs 4.2中的一个错误,尚未修复(尽管有一些错误) Sencha的线程声称它已修复),例如,我所做的修复是替换所有空格

Issue resolved by changing the message box to be Ext.Msg.show , the qtip issue is a bug in extjs 4.2 that has not been fixed (despite a few threads at Sencha claiming it is fixed), fix I made was to replace all the spaces, for example

blankText: 'New UserName is required'

这篇关于ExtJS qtip和消息框问题,根据浏览器,文本被截断/丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆