Impossible to set layout width in %
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- angular, typescript
研究方向
從 入口開始,在具有 width: 100% 和固定高度的 sidenav 中重現首次渲染。追蹤初始版面使用 700px 的原因,以及為什麼調整大小或移動座標軸會將其修正;完成標準是首次渲染時遵循百分比寬度,且不使用 displayGraph workaround。
由索引模型根據 Issue 內容生成。
描述
Hello,
In my case i updated angular and figured that witdh of my <plotly-plot> is now fixed to 700px.
My graph is displayed in a sidenav, and the 700px is higher than the sidenav width.
Also this is not working in html :
<plotly-plot [style]="{ width: '100%', height: '220px' }" ...></plotly-plot>
The height is correctly set but width:100% is totaly ignored as it's not valid value in px and the default value 700px stay.
Another thing is that after a window resize or a graph axis moove all is correctly set again and graph fit to the container.
So it is just about the first render forcing to 700px;
I used a temporary trick to make the graph fit properly.
- An event is triggered when the sidenav is opened, this event sets a boolean "displayGraph" to true.
- This boolean is then used to display the graph via a *ngIf="displayGraph"
Best regards,
CUETO Vincent
- 主要語言
- TypeScript
- 星號
- 242
- 分支
- 81
- 平均合併
- 23 小時 52 分鐘
- 30 天內合併 PR
- 5
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/angular-plotly.js 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
plotly/angular-plotly.js#373 ·
維護者通常 1 天內回覆
-
Feature request: please add migration guide可能已有人在做 @andrefarzat 於 21 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 45/100
plotly/angular-plotly.js#285 · 3 則留言 ·
維護者通常 1 天內回覆
-
event handlers are not typed可能已有人在做 @andrefarzat 於 21 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 38/100
plotly/angular-plotly.js#283 ·
維護者通常 1 天內回覆
-
Angular 20 standalone application可能已有人在做 @andrefarzat 於 21 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 35/100
plotly/angular-plotly.js#281 · 8 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 25/100
plotly/angular-plotly.js#278 · 2 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
查看 plotly/angular-plotly.js 的全部 Issue
相似的 Issue
-
Add: Yichang TV未關閉check:passed streams:add
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
vtselect: data race in Tempo search tags APIs for invalid TraceQL queries可能已有人在做 @Shubham19032004 今天認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 78/100
VictoriaMetrics/VictoriaTraces#304 ·
維護者通常 1 天內回覆
-
test: claim-conflict drop leaves both facts active and is never re-proposed (untested review cell)未關閉
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
microsoft/vscode-pull-request-github#9159 ·
維護者通常 1 天內回覆
-
[Feature]: Usage page should show API-equivalent cost and say when a connected plan shows info only未關閉enhancement from-x
難度 2/5 1-3 小時 新手友好度 66/100
nightly-labs/openbot#4867 ·
維護者通常 1 天內回覆