From 7e10515978736aee606200e934b91cc86e9c65b4 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 8 Sep 2021 16:47:57 +0800 Subject: [PATCH] fix panel height overflow --- public/self/js/Director/labelingSelfDefine.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/public/self/js/Director/labelingSelfDefine.js b/public/self/js/Director/labelingSelfDefine.js index 79ab5de8e..855daeaa8 100644 --- a/public/self/js/Director/labelingSelfDefine.js +++ b/public/self/js/Director/labelingSelfDefine.js @@ -2045,20 +2045,19 @@ function set_region_annotations_to_default_value(rid) { function show_tpye_attribute(){ + var set_attributes1 = document.getElementById("set_attributes") + set_attributes1.style.height = '70rem' sessionStorage.setItem('attr_id','type'); // sessionStorage.setItem(\'predict_task_id\',\'"+task_id +"\'); - var set_attributes1 = document.getElementById("set_attributes") - set_attributes1.setAttribute('style', 'height:70rem;'); show_attribute_properties(); show_tpye_attribute_options(); } function show_color_attribute(){ - - sessionStorage.setItem('attr_id','color'); var set_attributes2 = document.getElementById("set_attributes") - set_attributes2.setAttribute('style', 'height:70rem;'); + set_attributes2.style.height = '70rem' + sessionStorage.setItem('attr_id','color'); var isTrue = show_attribute_properties_color(); if (!isTrue){ return;