Skip to content

Commit

Permalink
Fix Panel borders
Browse files Browse the repository at this point in the history
- Evita que el contenido del Panel se muestre sobre el borde de este.
  • Loading branch information
autosquash committed Feb 25, 2024
1 parent 77ae35c commit 4539ffa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vista/paneles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ PanelEncargar::PanelEncargar(
}
render_texture = std::make_shared<sf::RenderTexture>();
assert(render_texture->create(
forma.getGlobalBounds().width, forma.getGlobalBounds().height
forma.getGlobalBounds().width - forma.getOutlineThickness(),
forma.getGlobalBounds().height - forma.getOutlineThickness()
));
}

Expand Down Expand Up @@ -186,7 +187,8 @@ PanelPedidos::PanelPedidos(

render_texture = std::make_shared<sf::RenderTexture>();
assert(render_texture->create(
forma.getGlobalBounds().width, forma.getGlobalBounds().height
forma.getGlobalBounds().width - forma.getOutlineThickness(),
forma.getGlobalBounds().height - forma.getOutlineThickness()
));
}

Expand Down

0 comments on commit 4539ffa

Please sign in to comment.