From 09e6d56bf595a07d5ef2c7cd01fe641b5bd114e5 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 26 Jul 2016 17:05:24 +0200 Subject: [PATCH] * All apps: Fix styling glitches for search links dropdown --- api/js/etemplate/et2_widget_link.js | 2 +- api/templates/default/etemplate2.css | 3 --- infolog/templates/default/edit.xet | 8 ++++---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/api/js/etemplate/et2_widget_link.js b/api/js/etemplate/et2_widget_link.js index ce34226902..75d3864571 100644 --- a/api/js/etemplate/et2_widget_link.js +++ b/api/js/etemplate/et2_widget_link.js @@ -682,7 +682,7 @@ var et2_link_entry = (function(){ "use strict"; return et2_inputWidget.extend( // Normal stuff li.append(jQuery( "" ).text( item.label )) .appendTo(ul); - window.setTimeout(function(){ul.toggleClass('ui-menu-rtl',(ul.offset().left + ul.width() > window.outerWidth))}, 300); + window.setTimeout(function(){ul.css('max-width', jQuery('.et2_container').width()-ul.offset().left)}, 300); return li; }; diff --git a/api/templates/default/etemplate2.css b/api/templates/default/etemplate2.css index cb2ec841a7..bd09cd9616 100644 --- a/api/templates/default/etemplate2.css +++ b/api/templates/default/etemplate2.css @@ -701,11 +701,8 @@ div.et2_link_entry select { width: 40%; margin-right: 10px; } -div.et2_link_entry .ui-autocomplete.ui-menu.ui-menu-rtl {left:auto !important;right:0px;} -div.et2_link_entry .ui-autocomplete.ui-menu .ui-menu-item {border-left:5px solid transparent;} div.et2_link_entry input.ui-autocomplete-input { padding-bottom: 1px; - width: calc(60% - 10px); } .et2_link_entry.no_app input.ui-autocomplete-input { width: 100%; diff --git a/infolog/templates/default/edit.xet b/infolog/templates/default/edit.xet index e022924723..ba4d5dd26d 100644 --- a/infolog/templates/default/edit.xet +++ b/infolog/templates/default/edit.xet @@ -185,12 +185,12 @@ - - + + - - + +