Skip to content

Commit 0317939

Browse files
committed
Add ProTip about work area dimensions
1 parent 9fc0141 commit 0317939

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sections/system/app-sys-information.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ <h5>Renderer Process</h5>
9898
<p>See the full <a href="http://electron.atom.io/docs/api/screen">screen documentation<span class="u-visible-to-screen-reader">(opens in new window)</span></a> for more.</p>
9999
<h5>Renderer Process</h5>
100100
<pre><code data-path="renderer-process/system/screen-information.js"></pre></code>
101+
102+
<div class="demo-protip">
103+
<h2>ProTip</h2>
104+
<strong>Differences in dimensions.</strong>
105+
<p>The <code>.size</code> method in the example returns the raw dimensions of the screen but because of system menu bars this may not be the actual space available for your app.</p>
106+
107+
<p>To get the dimensions of the available screen space use the <code>.workAreaSize</code> method. Using <code>.workArea</code> will return the coordinates as well as the dimensions of the available screen space.</p>
108+
</div>
101109
</div>
102110
</div>
103111
</div>

0 commit comments

Comments
 (0)