Tweaks
This commit is contained in:
JonatanRek 2024-09-15 14:42:05 +02:00
parent 7699f5c6b9
commit 027ec1f0d9
2 changed files with 4 additions and 4 deletions

View File

@ -5,13 +5,13 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:FakeDeck" xmlns:local="clr-namespace:FakeDeck"
mc:Ignorable="d" mc:Ignorable="d"
Title="MainWindow"Activated="FakeDeckUI_Activated" WindowStartupLocation="CenterScreen"> Title="MainWindow" Activated="FakeDeckUI_Activated" WindowStartupLocation="CenterScreen">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="270"/> <RowDefinition Height="270"/>
<RowDefinition Height="50*"/> <RowDefinition Height="50*"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Image x:Name="qr_code" Margin="10,10,10,10"/> <Image x:Name="qr_code" Width="250px" Height="250px" Margin="10,10,10,10"/>
<TextBox Margin="10,10,10,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Grid.Row="1"/> <TextBox Margin="10,10,10,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Grid.Row="1"/>
</Grid> </Grid>
</Window> </Window>

View File

@ -13,8 +13,8 @@ function urlencodeFormData(fd){
function resizeGrid(){ function resizeGrid(){
var width = document.body.clientWidth; var width = document.body.clientWidth;
var height = document.body.clientHeight; var height = document.body.clientHeight;
var biggerSizeW = (width / 5); var biggerSizeW = (width / 7);
var biggerSizeH = (height / 3); var biggerSizeH = (height / 5);
var biggerSize = biggerSizeW; var biggerSize = biggerSizeW;
if(biggerSizeW < biggerSizeH){ if(biggerSizeW < biggerSizeH){