EasyUI Forum
April 29, 2024, 08:19:52 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to adjust Accordion items height  (Read 9320 times)
pratikk
Newbie
*
Posts: 49


View Profile Email
« on: April 22, 2015, 03:38:35 AM »

I want to adjust the height of the accordion items. I searched the forum, I found the way to make bigger the font size but this time the height  remains the same.



« Last Edit: April 22, 2015, 04:00:44 AM by pratikk » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 22, 2015, 07:47:53 AM »

You can custom the panel header with a <header> element.
Code:
<div class="easyui-accordion" style="width:500px;height:300px;">
<div>
<header>
<div style="height:30px;line-height:30px">tab1</div>
</header>
</div>
<div>
<header>
<div style="height:30px;line-height:30px">tab2</div>
</header>
</div>
</div>
Logged
pratikk
Newbie
*
Posts: 49


View Profile Email
« Reply #2 on: April 22, 2015, 11:27:51 AM »

My code is below. I tried to put <header> in  several combinations but none of them worked. Can you show me ?


            <div id="accordion" class="easyui-accordion" style="height: auto;">
                <div title="<span style='font-size:20px;'>Pos</span>" data-options="selected:false" class="anasat"
                    style="overflow:auto;padding:7px;font-weight: bold">
                    <div id="cmenu2" class="cari">Pos Kasa</div>
                    <div id="cmenu2" class="muhkasa">Fişler</div>
                    <div id="cmenu2" class="carifis">Raporlar</div>
                </div>
                <div title="<span style='font-size:20px;'>Ayarlar</span>" data-options="selected:false" class="anasat"
                    style="overflow:auto;padding:7px;font-weight: bold">
                    <div id="cmenu2" class="stokart">Kasa Parametreleri</div>
                </div>
                <div class="web" title="<span style='font-size:20px;'>Flexxi</span>" class="anasat" data-options="selected:true"
                    style="overflow:auto;padding:7px;font-weight: bold">
                    <div id="cmenu2" class="web">Web</div>
                    <div id="cmenu2" class="destek">Destek</div>
                    <div id="cmenu2" class="lisbilgi">Lisans Bilgisi</div>
                    <div id="cmenu2" class="indexegit">Çıkış</div>
                </div>
            </div>
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: April 22, 2015, 05:56:44 PM »

Please refer to this example https://jsfiddle.net/42zb9z3x/
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!