From 428c3e973db8fb31917301015eb981691e0d59b9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 Oct 2017 18:36:10 +0200 Subject: [PATCH] FIX for combo on rtl languages --- htdocs/projet/list.php | 5 +++-- htdocs/theme/eldy/style.css.php | 13 ++++++++++--- htdocs/theme/md/style.css.php | 7 +++++++ 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/htdocs/projet/list.php b/htdocs/projet/list.php index 50a2148603b..cc4d4e27e64 100644 --- a/htdocs/projet/list.php +++ b/htdocs/projet/list.php @@ -607,8 +607,9 @@ if (! empty($arrayfields['p.fk_statut']['checked'])) print ''; $arrayofstatus = array(); foreach($object->statuts_short as $key => $val) $arrayofstatus[$key]=$langs->trans($val); - $arrayofstatus['99']=$langs->trans("NotClosed").' ('.$langs->trans('Draft').'+'.$langs->trans('Opened').')'; - print $form->selectarray('search_status', $arrayofstatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', 'maxwidth100'); + $arrayofstatus['99']=$langs->trans("NotClosed").' ('.$langs->trans('Draft').' + '.$langs->trans('Opened').')'; + print $form->selectarray('search_status', $arrayofstatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', 'maxwidth100 selectarrowonleft'); + print ajax_combobox('search_status'); print ''; } // Action column diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index c38f15f96eb..5dae2933c0d 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -801,6 +801,13 @@ div.fiche>div.tabBar>form>div.div-table-responsive { align-self: flex-start; } +select.selectarrowonleft { + direction: rtl; +} +select.selectarrowonleft option { + direction: ltr; +} + /* ============================================================================== */ /* Styles to hide objects */ @@ -4380,7 +4387,7 @@ dl.dropdown { } .dropdown ul { margin: -1px 0 0 0; - text-align: left; + text-align: ; } .dropdown dd { position:relative; @@ -4399,7 +4406,7 @@ dl.dropdown { background-color: #FFF; border: 1px solid #888; display:none; - right:0px; /* pop is align on right */ + :0px; /* pop is align on right */ padding: 2px 15px 2px 5px; position:absolute; top:2px; @@ -4416,7 +4423,7 @@ dl.dropdown { padding: 2px; } .dropdown dd ul li input[type="checkbox"] { - margin-right: 3px; + margin-: 3px; } .dropdown dd ul li a, .dropdown dd ul li span { padding: 3px; diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 05b0f306ead..8758cdd4584 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -804,6 +804,13 @@ div.fiche>form>div.div-table-responsive { align-self: flex-start; } +select.selectarrowonleft { + direction: rtl; +} +select.selectarrowonleft option { + direction: ltr; +} + /* ============================================================================== */ /* Styles to hide objects */