EasyUI Forum
May 19, 2024, 11:09:01 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED]slider (v1.5) resizing browser  (Read 9164 times)
msvabik
Newbie
*
Posts: 30


View Profile
« on: August 18, 2016, 01:32:40 AM »

Hallo,

I use the slider:
Code:
<input name="limit" class="easyui-slider" 
       data-options="showTip:true,
                   value:10,
                           min:0,
  max:60,
  step:1,
                   rule: [0,'|',10,'|',20,'|',30,'|',40,'|',50,'|',60]">
image before resizing the browser:

After resizing the browser slider badly redrawn:


« Last Edit: August 19, 2016, 02:52:16 AM by msvabik » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: August 18, 2016, 01:48:52 AM »

You have to set the 'width' using a percent value. The code below works fine.
Code:
<input name="limit" class="easyui-slider" style="width:100%"
       data-options="showTip:true,
                   value:10,
                           min:0,
   max:60,
   step:1,
                   rule: [0,'|',10,'|',20,'|',30,'|',40,'|',50,'|',60]">
Logged
msvabik
Newbie
*
Posts: 30


View Profile
« Reply #2 on: August 18, 2016, 01:58:12 AM »

If I use width = 100% get this result:


My code:
Code:
<div class="easyui-panel" style="width:100%;padding:30px 60px;margin-top:20px;">
        <form id="config{id}" method="post" action="servis.php">
        <input type="hidden" name="id" value="{id}">
        <input type="hidden" name="com" value="user">
        <input type="hidden" name="action" value="SaveConfig">
          <table style="width: 100%">
        <tr>
            <td style="width:100px">{lmonitor}:</td>
            <td><input name="monitor" class="easyui-switchbutton" {mch} data-options="onText:'{on}',offText:'{off}',value:'1'"></td>
            </tr>
            <tr>
            <td style="width:100px;height:70px;">{llimit}:</td>
            <td>
            <input name="limit" class="easyui-slider" style="width:100%" data-options="
                showTip:true,
                value:10,
                min:0,
    max:60,
    step:1,
                rule: [0,'|',10,'|',20,'|',30,'|',40,'|',50,'|',60]"></td>
        </tr>
        <tr>
            <td style="width:100px;">{lfile}:</td>
            <td><input name="file" class="easyui-switchbutton" {fch} data-options="onText:'{on}',offText:'{off}',value:'1'"></td>
            </tr>
          </table>
        <div style="margin-bottom:20px;margin-top:20px">
        <select class="easyui-combobox" name="proc" label="{lproc}:"
                labelWidth="100" style="width:100%;height:32px" url="servis.php?com=user&action=GetProc&id={id}"
                valueField="id",
textField="proc"></select>
        </div>
        </form>
        <div style="text-align:center;padding:5px 0">
            <a href="javascript:void(0)" class="easyui-linkbutton" size="large" onclick="$('#config{id}').form('submit')" style="width:25%">{submit}</a>
        </div>
        </div>
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: August 18, 2016, 07:41:29 AM »

Please try to add the 'table-layout:fixed' style to the <table> element.
Code:
<table style="width: 100%;table-layout:fixed">
...
</table>
Logged
msvabik
Newbie
*
Posts: 30


View Profile
« Reply #4 on: August 19, 2016, 02:50:03 AM »

Thank you very much it works just fine.
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!