doubiao1734 2015-11-27 10:53
浏览 49

EasyUI面板标题不适合面板

I use an EasyUI panels, but the panel-header doesn't fit the panel so I can't see the icon for the actions of the panel. EasyUI creates this result :

<div class="panel" style="display: block; width: 400px;">
<div class="panel-header" style="width: 412.222px;">
    <div class="panel-title">Select picture</div>
    <div class="panel-tool">
    <a href="javascript:void(0)" class="icon-plus"></a>
    <a href="javascript:void(0)" class="icon-reload"></a>
    </div>
</div>
<div id="foto_panel" style="display: block; width: 402.222px; height: 473.111px;" class="easyui-panel panel-body" title="">
    content of the panel
</div>

So, you can see that the width of the header <div class="panel-header"> excetes the width of the wrapping <div class="panel">.

All is made by a PHP-function that returns the html based on this script:

    $script="
        $(function(){                               
            var w = 400;
            var h = 500;

            $('#foto_panel').panel({                    
                title: 'Select picture',
                width: w,
                height: h,

                tools:[{
                    iconCls: 'icon-plus',
                    handler: function(){
                    }
                },{
                    iconCls: 'icon-reload',
                    handler: function(){
                        $('#".$combo_id."').combobox('reload','".$url."');
                    }
                }]
            });
        });";

UPDATE:

I found that some properties (like padding: 0px e.g.) in the css is fooling around with the EasyUI scripts. What needs to be changed/commented for EasyUI is working properly.

Thanks.

solved

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 delta降尺度计算的一些细节,有偿
    • ¥15 Arduino红外遥控代码有问题
    • ¥15 数值计算离散正交多项式
    • ¥30 数值计算均差系数编程
    • ¥15 redis-full-check比较 两个集群的数据出错
    • ¥15 Matlab编程问题
    • ¥15 训练的多模态特征融合模型准确度很低怎么办
    • ¥15 kylin启动报错log4j类冲突
    • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
    • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序