mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 00:42:19 -07:00
Removed unintended stack zone minimum clamping
This commit is contained in:
parent
529a1f94c4
commit
eeae205f51
1 changed files with 0 additions and 7 deletions
|
|
@ -19,10 +19,6 @@
|
||||||
#include <libcockatrice/settings/interface_settings.h>
|
#include <libcockatrice/settings/interface_settings.h>
|
||||||
#include <libcockatrice/utility/counter_ids.h>
|
#include <libcockatrice/utility/counter_ids.h>
|
||||||
|
|
||||||
// Minimum height the stack zone keeps when the command zone shares its vertical space,
|
|
||||||
// so the stack remains usable. Owned by this layout code, the sole consumer.
|
|
||||||
static constexpr qreal MINIMUM_STACKING_HEIGHT = 50.0;
|
|
||||||
|
|
||||||
PlayerGraphicsItem::PlayerGraphicsItem(PlayerLogic *_player) : player(_player)
|
PlayerGraphicsItem::PlayerGraphicsItem(PlayerLogic *_player) : player(_player)
|
||||||
{
|
{
|
||||||
connect(&SettingsCache::instance().userInterface(), &InterfaceSettings::horizontalHandChanged, this,
|
connect(&SettingsCache::instance().userInterface(), &InterfaceSettings::horizontalHandChanged, this,
|
||||||
|
|
@ -319,9 +315,6 @@ void PlayerGraphicsItem::rearrangeZones()
|
||||||
qreal stackHeight = tableHeight;
|
qreal stackHeight = tableHeight;
|
||||||
if (commandZoneVisible) {
|
if (commandZoneVisible) {
|
||||||
stackHeight = tableHeight - totalCommandZoneHeight();
|
stackHeight = tableHeight - totalCommandZoneHeight();
|
||||||
if (stackHeight < MINIMUM_STACKING_HEIGHT) {
|
|
||||||
stackHeight = MINIMUM_STACKING_HEIGHT;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
stackZoneGraphicsItem->setHeight(stackHeight);
|
stackZoneGraphicsItem->setHeight(stackHeight);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue