EasyUI Forum
May 08, 2024, 01:09:32 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: Tagbox DropDownArrow scrolling upwards  (Read 5079 times)
iLLuSia
Newbie
*
Posts: 12


View Profile Email
« on: October 20, 2018, 04:01:39 PM »

I have a Tagbox, with remote data, style="max-height: 100px" and hasDownArrow=true. As soon as there are enough values for the box to be full and needing scrolling, the downArrow also scrolls until it disappears completely.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 20, 2018, 07:47:01 PM »

The tag has no scrolling feature, please prevent from set the fixed height for the tagbox component. If you really want, please try this code:
Code:
$('#tb').tagbox();
var span = $('#tb').next();
span.css('overflow','auto').bind('scroll',function(e){
span.find('.textbox-addon').css('top',0);
var height = $(this)[0].scrollHeight;
height -= span.height();
var top = Math.min($(this).scrollTop(),height);
span.find('.textbox-addon').css('top',top)
})
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!