Repository navigation
Fix road maker scrolling and keep actions visible - #26
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改
道路製作器內容過長時,原本會把建立與取消按鈕推到畫面外。現在道路類型視窗限制在可用畫面高度內(保留 48 點邊距),右欄表單與所選道路資訊各自可垂直捲動;檔名警告、Create the road type 與 Cancel 固定在右欄底部。左欄清單填滿剩餘高度。
僅調整版面,未更動欄位、介面文字或道路製作邏輯。此版本 egui 已移除 Context::screen_rect,使用 Context::content_rect 取得可用高度。
驗證
cargo check --release --locked通過(既有警告)。maker_scroll_keeps_actions_visible:以 Cargo 的相同依賴與 Rust 1.93 編譯測試執行檔,僅停用測試執行檔的最佳化與 LTO 以縮短驗證時間。egui 無 GPU 輸入/版面測試:1366×768、1920×1080;簡單模式與進階模式(8 塊積木、5 條標線);另涵蓋展開 20 筆巴士規則預覽與檔名警告。確認能捲到末段說明、建立按鈕位置固定且未被裁切,實際點擊建立寫出道路,再點擊取消離開製作器。原生視窗人工複查步驟(尚未執行)
自動測試直接驅動 egui,不涵蓋作業系統視窗管理器、實體滑鼠滾輪與不同 DPI 的顯示效果。以下列為待人工複查步驟,不宣稱已手動確認:
My road?)、建立與取消都在底部可見。點擊建立並確認道路成功寫出。Base:
yumin278/openMapper:integration;不合併至上游,不自行合併。