差分発生行の前後
無視リスト:
更新日時:
2015/02/12 15:09:08 (10 年 前)
更新者:
lenz
ログメッセージ:

エンドポイントのセレクトボックスが狭く選択内容が見えない問題をレイアウト変更で改良
他細かなGUI修正
(newtopのみ。newguiは崩壊中)

ファイル:
1 変更

凡例:

変更なし
追加
削除
  • SPARQLBuilderWWW/web/newsparqlbuilder.js

    r234 r235  
    9797        $('.SBModalView').css('top', $(window).scrollTop()).css('height', window.innerHeight).fadeIn(); 
    9898 
    99         var mvw = $('.SBModalContents').width(); 
    100         var mvh = $('.SBModalContents').height(); 
    101  
    102         $('.SBModalContents .SBSelects').css('width', (mvw - 201) + 'px').css('height', 30 + 'px'); 
    103         $('.SBModalContents .SBMessage').css('width', 200 + 'px').css('height', 30 + 'px'); 
    104         $('.SBModalContents .SBGraph').css('width', (mvw - 201) + 'px').css('height', (mvh - 31) + 'px'); 
    105         $('.SBModalContents .SBSelectedPath').css('width', 180 + 'px').css('height', (mvh - 51 - 26) + 'px'); 
    106         $('.SBModalContents .SBModalButtons').css('width', 200 + 'px').css('height', '26px'); 
     99        resizeModalView(); 
    107100 
    108101        $(".SBEndPointSelect").select2(); 
     
    146139                event.preventDefault(); 
    147140        }); 
     141} 
     142 
     143function resizeModalView(){ 
     144 
     145        if($('.SBModalView').css('display') == 'block'){ 
     146                var mvw = $('.SBModalContents').width(); 
     147                var mvh = $('.SBModalContents').height(); 
     148                $('.SBModalContents .SBForms').css('width', (mvw - 201) + 'px').css('height', 56 + 'px'); 
     149                $('.SBModalContents .SBMessage').css('width', 200 + 'px').css('height', 56 + 'px'); 
     150                $('.SBModalContents .SBGraph').css('width', (mvw - 201) + 'px').css('height', (mvh - 57) + 'px'); 
     151                $('.SBModalContents .SBPath').css('width', 180 + 'px').css('height', (mvh - 77 - 26) + 'px'); 
     152                $('.SBModalContents .SBModalButtons').css('width', 200 + 'px').css('height', '26px'); 
     153 
     154                var selw = $('.SBModalContents .SBSelects').width(); 
     155                if(selw % 2 == 1){ 
     156                        $('.SBModalContents .SBSelects').css('width', (selw - 1)); 
     157                } 
     158        } 
    148159} 
    149160 
     
    530541                }else{ 
    531542                    // 譛ォ遶ッ繝弱�繝峨↑繧峨ヤ繝シ繝ォ繝√ャ繝励�諠�ア繧呈峩譁ー 
    532                     var resultText = ""; 
     543                    var resultText = '<input type="button" class="SBGenButton" value="Generate" onclick="generateSPARQL()">'; 
    533544                    // 繝代せ縺ョ蜷榊燕驟榊�蛻�セ後m縺九i郢ー繧願ソ斐@縺ェ縺後i 
    534545                    for (var i = pathname.length;i > 0; i--){ 
     
    547558                        } 
    548559                    } 
    549                     resultText = resultText + '<input type="button" class="SBGenButton" value="Generate" onclick="generateSPARQL()">'; 
     560 
    550561                    // 繝��繝ォ繝√ャ繝励�蜀�ョケ繧呈嶌縺肴鋤縺� 
    551562                    $('.SBSelectedPath').html(resultText); 
    552                     if(svg.attr("width") == width){ 
    553                         $('.SBTooltip').show(); 
    554                     } 
    555563 
    556564                    // 繧オ繝シ繝悶Ξ繝�ヨ縺ォ騾√j霑斐☆繝代せ繧ェ繝悶ず繧ァ繧ッ繝医r菫晏ュ� 
    557565                    pathobj = d.path; 
    558  
     566                } 
     567 
     568                $('.SBPath').css('overflow-y', 'visible'); 
     569 
     570                if($('.SBPath').height() < $('.SBSelectedPath').innerHeight()){ 
     571                    $('.SBPath').css('overflow-y', 'scroll'); 
    559572                } 
    560573            } 
     
    852865        var obj = jsontext; 
    853866 
    854         $('.SBResult').css('color', 'black').css('font-weight', 'normal'); 
     867        $('.SBResult').css('color', 'black').css('font-weight', 'normal').css('margin-top', '0px'); 
    855868 
    856869        $('.SBPlural').text('s'); 
    857870 
    858871        if(obj.length == 0){ 
    859                 $('.SBResult').css('color', 'red').css('font-weight', 'bold'); 
     872                $('.SBResult').css('color', 'red').css('font-weight', 'bold').css('margin-top', '15px'); 
    860873                $('.SBPlural').text(''); 
    861874        }else if(obj.length == 1){ 
     
    865878        if(obj.length <= 10){ 
    866879                viewnum = obj.length; 
     880                $('.SBResult').css('margin-top', '15px'); 
    867881                $('.SBViewall').hide(); 
    868882        }else if(pathlimit == 10){ 
     
    871885        }else{ 
    872886                viewnum = obj.length; 
     887                $('.SBResult').css('margin-top', '15px'); 
    873888                $('.SBViewall').hide(); 
    874889        }