Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/ea9ddcff3f401295faaec86b97bf9b095fee2970?style=split&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
29 additions and
24 deletions
src/gui/UBStylusPalette.cpp
@ -93,23 +93,28 @@ UBStylusPalette::UBStylusPalette(QWidget *parent, Qt::Orientation orient)
void UBStylusPalette : : initPosition ( )
void UBStylusPalette : : initPosition ( )
{
{
if ( ! UBSettings : : settings ( ) - > appToolBarOrientationVertical - > get ( ) . toBool ( ) )
{
QWidget * pParentW = parentWidget ( ) ;
QWidget * pParentW = parentWidget ( ) ;
if ( NULL ! = pParentW )
if ( ! pParentW ) return ;
{
mCustomPosition = true ;
mCustomPosition = true ;
QPoint pos ;
QPoint pos ;
int parentWidth = pParentW - > width ( ) ;
int parentWidth = pParentW - > width ( ) ;
int parentHeight = pParentW - > height ( ) ;
int parentHeight = pParentW - > height ( ) ;
int posX = ( parentWidth / 2 ) - ( width ( ) / 2 ) ;
int posY = parentHeight - border ( ) - height ( ) ;
if ( UBSettings : : settings ( ) - > appToolBarOrientationVertical - > get ( ) . toBool ( ) ) {
int posX = border ( ) ;
int posY = ( parentHeight / 2 ) - ( height ( ) / 2 ) ;
pos . setX ( posX ) ;
pos . setX ( posX ) ;
pos . setY ( posY ) ;
pos . setY ( posY ) ;
moveInsideParent ( pos ) ;
}
}
else {
int posX = ( parentWidth / 2 ) - ( width ( ) / 2 ) ;
int posY = parentHeight - border ( ) - height ( ) ;
pos . setX ( posX ) ;
pos . setY ( posY ) ;
}
}
moveInsideParent ( pos ) ;
}
}
UBStylusPalette : : ~ UBStylusPalette ( )
UBStylusPalette : : ~ UBStylusPalette ( )