Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sailassist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
54
Merge Requests
54
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gr-ssv
Sailassist
Commits
8af9e919
Commit
8af9e919
authored
Jun 17, 2025
by
shigemi miura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iPadの画面サイズ毎にメニュー高さを変更するように対応
parent
2d1d9f12
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
MainTabView.swift
Seilassist/Sailassist/Tab/MainTabView.swift
+8
-2
No files found.
Seilassist/Sailassist/Tab/MainTabView.swift
View file @
8af9e919
...
...
@@ -329,11 +329,17 @@ struct CustomTabBar: View {
private
func
mapFunctionsView
()
{
let
screenBounds
=
UIScreen
.
main
.
bounds
let
screenHeight
=
screenBounds
.
height
let
menuTaskViewWidth
:
CGFloat
=
400
let
menuTaskViewHeight
:
CGFloat
=
300
let
menuTaskViewOffset
:
CGFloat
=
80
let
menuTaskViewX
:
CGFloat
=
10
let
menuTaskViewY
=
screenBounds
.
height
-
menuTaskViewHeight
-
menuTaskViewOffset
// メニューの縦サイズを画面の高さに応じて計算
let
menuTaskViewHeight
=
max
(
200
,
screenHeight
*
0.8
)
// メニューのY座標を計算(画面の下部に配置)
let
menuTaskViewY
=
screenHeight
-
menuTaskViewHeight
-
menuTaskViewOffset
MenuWindowManager
.
shared
.
showMenuView
(
MenuTaskView
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment