@@ -93,7 +93,7 @@ void GGUI::listView::addChild(element* e) {
9393 // Determine the flow direction for the list view.
9494 if (Style->Flow_Priority .value == DIRECTION::ROW) {
9595 // Adjust for minimum width needed when borders are present.
96- signed int Width_Modifier = e->hasBorder () & Last_Child->hasBorder ();
96+ signed int Width_Modifier = e->hasBorder () && Last_Child->hasBorder ();
9797 if (isDynamicSizeAllowed ()){
9898 unsigned long long Proposed_Height = INTERNAL::Max (Child_Needs_Minimum_Height_Of, getHeight ());
9999 unsigned long long Proposed_Width = INTERNAL::Max (Last_Child->getPosition ().x + Child_Needs_Minimum_Width_Of - Width_Modifier, getWidth ());
@@ -110,7 +110,7 @@ void GGUI::listView::addChild(element* e) {
110110 Last_Child->setDimensions (e->getWidth (), e->getHeight ());
111111 } else {
112112 // Adjust for minimum height needed when borders are present.
113- signed int Height_Modifier = e->hasBorder () & Last_Child->hasBorder ();
113+ signed int Height_Modifier = e->hasBorder () && Last_Child->hasBorder ();
114114 if (isDynamicSizeAllowed ()){
115115 unsigned long long Proposed_Width = INTERNAL::Max (Child_Needs_Minimum_Width_Of, getWidth ());
116116 unsigned long long Proposed_Height = INTERNAL::Max (Last_Child->getPosition ().y + Child_Needs_Minimum_Height_Of - Height_Modifier, getHeight ());
@@ -166,7 +166,7 @@ void GGUI::listView::calculateChildsHitboxes(size_t Starting_Offset){
166166 element* Next = Style->Childs [i];
167167
168168 // Affect minimum width needed, when current child has borders as well as the previous one.
169- int Width_Modifier = Next->hasBorder () & Current->hasBorder ();
169+ int Width_Modifier = Next->hasBorder () && Current->hasBorder ();
170170
171171 Next->setPosition ({Current->getPosition ().x + Current->getWidth () - Width_Modifier, Next->getPosition ().y , Next->getPosition ().z });
172172
@@ -181,7 +181,7 @@ void GGUI::listView::calculateChildsHitboxes(size_t Starting_Offset){
181181 element* Next = Style->Childs [i];
182182
183183 // Affect minimum height needed, when current child has borders as well as the previous one.
184- int Height_Modifier = Next->hasBorder () & Current->hasBorder ();
184+ int Height_Modifier = Next->hasBorder () && Current->hasBorder ();
185185
186186 Next->setPosition ({Next->getPosition ().x , Current->getPosition ().y + Current->getHeight () - Height_Modifier, Next->getPosition ().z });
187187
0 commit comments