简体   繁体   中英

Ext JS 4: Title Bar buttons not fully visible in Internet Explorer 8

The default ExtJS configuration doesn't allow title bar buttons to show correctly in IE 8. I have not tested in IE 9. How can I fix this?

BEFORE:

Internet Explorer 8:

在此处输入图片说明

Mozilla Firefox 15:

在此处输入图片说明

I've tried adding a tbar > style > height config of the 1st button to '200px'. That just makes the 1st button get huge, but the 2nd and 3rd remain the same. Even if I set the same height in all 3 buttons, the buttons are still partially hidden in IE 8. If you know how to set the style of the tbar itself, I can attempt that. I can't figure that out though.

AFTER:

tbar: [{
    text: 'Create HEAT Project',
    style: {
        border: 'solid',
        height: '200px'
    },

Internet Explorer 8:

在此处输入图片说明

Mozilla Firefox 15:

在此处输入图片说明

This CSS fixed it in Internet Explorer!

<style media="screen" type="text/css">

    .x-nlg .x-toolbar-default {
        background-image: url(../blank.png) !important;
    }

</style>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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