@@ -2574,7 +2574,7 @@ ShieldingSourceDisplay::ShieldingSourceDisplay( PeakModel *peakModel,
25742574 m_shieldingSelects = new WContainerWidget ();
25752575 m_shieldingSelects->setStyleClass ( " ShieldingSelectContainer" );
25762576
2577- tooltip = " Shieldings are treated as spherical shells with the innermost"
2577+ tooltip = " Shieldings are treated as shells with the innermost"
25782578 " shell being the first one you add (the top one in this box), and"
25792579 " the subsequent shieldings layered around that one. Any sources"
25802580 " not attributed as components of shieldings are treated as point"
@@ -2872,30 +2872,37 @@ if (m_specViewer->isSupportFile())
28722872 chartDiv->setLayout (chartLayout);
28732873 chartLayout->setContentsMargins (0 , 0 , 0 , 0 );
28742874
2875- chartLayout->addWidget ( m_detectorDisplay, 0 , 0 , AlignLeft );
2876- chartLayout->addWidget ( m_showChiOnChart, 0 , 1 );
2877- chartLayout->addWidget ( addItemMenubutton, 0 , 2 , AlignRight);
2878- chartLayout->addWidget ( m_chi2Graphic, 1 , 0 , 1 , 3 );
2879- chartLayout->addWidget ( m_fitModelButton, 2 , 0 , 1 , 3 , AlignCenter );
2880- chartLayout->addWidget ( m_fitProgressTxt, 3 , 0 , 1 ,3 , AlignCenter );
2875+ chartLayout->addWidget ( m_detectorDisplay, 0 , 0 , AlignLeft );
2876+ chartLayout->addWidget ( m_showChiOnChart, 0 , 1 );
2877+ chartLayout->addWidget ( addItemMenubutton, 0 , 2 , AlignRight);
2878+ chartLayout->addWidget ( m_chi2Graphic, 1 , 0 , 1 , 3 );
2879+ chartLayout->addWidget ( m_fitModelButton, 2 , 0 , 1 , 3 , AlignCenter );
2880+ chartLayout->addWidget ( m_fitProgressTxt, 3 , 0 , 1 ,3 , AlignCenter );
28812881 chartLayout->addWidget ( m_cancelfitModelButton, 4 , 0 , 1 , 3 , AlignCenter );
28822882
28832883 chartLayout->setRowStretch (1 , 1 );
28842884 tab->addTab (chartDiv," Fit" , Wt::WTabWidget::PreLoading);
28852885 }else
28862886 {
28872887 // regular layout
2888- detectorLayout->addWidget ( m_detectorDisplay, 0 , 0 );
2889- detectorLayout->addWidget ( addItemMenubutton, 0 , 1 );
2890- detectorLayout->addWidget ( smallerContainer, 1 , 0 , 1 , 2 );
2891- detectorLayout->addWidget ( m_shieldingSelects, 2 , 0 , 1 , 2 );
2892- detectorLayout->addWidget ( m_fitModelButton, 3 , 0 , 1 , 2 , AlignCenter );
2893- detectorLayout->addWidget ( m_fitProgressTxt, 4 , 0 , 1 , 2 );
2894- detectorLayout->addWidget ( m_cancelfitModelButton, 5 , 0 , 1 , 2 , AlignCenter );
2895- detectorLayout->addWidget ( m_showChi2Text, 6 , 0 , 1 , 2 );
2888+
2889+ // We'll put the detector and menu icon in a flexbox layout, which is less hassle than
2890+ // the Wt layout
2891+ WContainerWidget *toprow = new WContainerWidget ();
2892+ toprow->addStyleClass ( " DetAndMenu" );
2893+ toprow->addWidget ( m_detectorDisplay );
2894+ toprow->addWidget ( addItemMenubutton );
2895+
2896+
2897+ detectorLayout->addWidget ( toprow, 0 , 0 );
2898+ detectorLayout->addWidget ( smallerContainer, 1 , 0 );
2899+ detectorLayout->addWidget ( m_shieldingSelects, 2 , 0 );
2900+ detectorLayout->addWidget ( m_fitModelButton, 3 , 0 , AlignCenter );
2901+ detectorLayout->addWidget ( m_fitProgressTxt, 4 , 0 );
2902+ detectorLayout->addWidget ( m_cancelfitModelButton, 5 , 0 , AlignCenter );
2903+ detectorLayout->addWidget ( m_showChi2Text, 6 , 0 );
28962904
28972905 detectorLayout->setRowStretch ( 2 , 1 );
2898- detectorLayout->setColumnStretch ( 0 , 1 );
28992906 detectorLayout->setHorizontalSpacing ( 0 );
29002907 detectorLayout->setVerticalSpacing ( 0 );
29012908 detectorLayout->setContentsMargins ( 1 , 1 , 1 , 1 );
0 commit comments