Index: SPARQLBuilderWWW/web/newsparqlbuilder.js
===================================================================
--- SPARQLBuilderWWW/web/newsparqlbuilder.js (revision 234)
+++ SPARQLBuilderWWW/web/newsparqlbuilder.js (revision 235)
@@ -97,12 +97,5 @@
 	$('.SBModalView').css('top', $(window).scrollTop()).css('height', window.innerHeight).fadeIn();
 
-	var mvw = $('.SBModalContents').width();
-	var mvh = $('.SBModalContents').height();
-
-	$('.SBModalContents .SBSelects').css('width', (mvw - 201) + 'px').css('height', 30 + 'px');
-	$('.SBModalContents .SBMessage').css('width', 200 + 'px').css('height', 30 + 'px');
-	$('.SBModalContents .SBGraph').css('width', (mvw - 201) + 'px').css('height', (mvh - 31) + 'px');
-	$('.SBModalContents .SBSelectedPath').css('width', 180 + 'px').css('height', (mvh - 51 - 26) + 'px');
-	$('.SBModalContents .SBModalButtons').css('width', 200 + 'px').css('height', '26px');
+	resizeModalView();
 
 	$(".SBEndPointSelect").select2();
@@ -146,4 +139,22 @@
 		event.preventDefault();
 	});
+}
+
+function resizeModalView(){
+
+	if($('.SBModalView').css('display') == 'block'){
+		var mvw = $('.SBModalContents').width();
+		var mvh = $('.SBModalContents').height();
+		$('.SBModalContents .SBForms').css('width', (mvw - 201) + 'px').css('height', 56 + 'px');
+		$('.SBModalContents .SBMessage').css('width', 200 + 'px').css('height', 56 + 'px');
+		$('.SBModalContents .SBGraph').css('width', (mvw - 201) + 'px').css('height', (mvh - 57) + 'px');
+		$('.SBModalContents .SBPath').css('width', 180 + 'px').css('height', (mvh - 77 - 26) + 'px');
+		$('.SBModalContents .SBModalButtons').css('width', 200 + 'px').css('height', '26px');
+
+		var selw = $('.SBModalContents .SBSelects').width();
+		if(selw % 2 == 1){
+			$('.SBModalContents .SBSelects').css('width', (selw - 1));
+		}
+	}
 }
 
@@ -530,5 +541,5 @@
                 }else{
                     // 譛ｫ遶ｯ繝弱�繝峨↑繧峨ヤ繝ｼ繝ｫ繝√ャ繝励�諠�ｱ繧呈峩譁ｰ
-                    var resultText = "";
+                    var resultText = '<input type="button" class="SBGenButton" value="Generate" onclick="generateSPARQL()">';
                     // 繝代せ縺ｮ蜷榊燕驟榊�蛻�ｾ後ｍ縺九ｉ郢ｰ繧願ｿ斐＠縺ｪ縺後ｉ
                     for (var i = pathname.length;i > 0; i--){
@@ -547,14 +558,16 @@
                         }
                     }
-                    resultText = resultText + '<input type="button" class="SBGenButton" value="Generate" onclick="generateSPARQL()">';
+
                     // 繝��繝ｫ繝√ャ繝励�蜀�ｮｹ繧呈嶌縺肴鋤縺�
                     $('.SBSelectedPath').html(resultText);
-                    if(svg.attr("width") == width){
-                        $('.SBTooltip').show();
-                    }
 
                     // 繧ｵ繝ｼ繝悶Ξ繝�ヨ縺ｫ騾√ｊ霑斐☆繝代せ繧ｪ繝悶ず繧ｧ繧ｯ繝医ｒ菫晏ｭ�
                     pathobj = d.path;
-
+                }
+
+                $('.SBPath').css('overflow-y', 'visible');
+
+                if($('.SBPath').height() < $('.SBSelectedPath').innerHeight()){
+                    $('.SBPath').css('overflow-y', 'scroll');
                 }
             }
@@ -852,10 +865,10 @@
 	var obj = jsontext;
 
-	$('.SBResult').css('color', 'black').css('font-weight', 'normal');
+	$('.SBResult').css('color', 'black').css('font-weight', 'normal').css('margin-top', '0px');
 
 	$('.SBPlural').text('s');
 
 	if(obj.length == 0){
-		$('.SBResult').css('color', 'red').css('font-weight', 'bold');
+		$('.SBResult').css('color', 'red').css('font-weight', 'bold').css('margin-top', '15px');
 		$('.SBPlural').text('');
 	}else if(obj.length == 1){
@@ -865,4 +878,5 @@
 	if(obj.length <= 10){
 		viewnum = obj.length;
+		$('.SBResult').css('margin-top', '15px');
 		$('.SBViewall').hide();
 	}else if(pathlimit == 10){
@@ -871,4 +885,5 @@
 	}else{
 		viewnum = obj.length;
+		$('.SBResult').css('margin-top', '15px');
 		$('.SBViewall').hide();
 	}
