Skip to content

BrowserWindow height and min-height options vary based on title bar #2945

Closed

Description

@benmkramer

Electron v0.33.1 on Mac OS X 10.10.5

The height and min-height options for BrowserWindow appear to be behaving inconsistently, in that min-height appears to take into account the size of the title bar.

To see this happen, use the following app code. Once open, attempt to resize slightly using the bottom corner, and notice that the window snaps its height to be slightly larger than it was initially, despite the height and min-height both being initialized to 400.

var app = require('app');
var BrowserWindow = require('browser-window');
app.on('ready', function () {
  var win = new BrowserWindow({
    height: 400,
    width: 400,
    'min-height': 400
  });
  win.show();
});

Activity

  1. zcbenz commented on Oct 1, 2015

    @zcbenz
    Contributor

    I'm merging this to #1806.

  2. etiktin commented on Oct 1, 2015

    @etiktin
    Contributor

    @benmkramer, thanks for the test case :)

  3. added a commit that references this issue on Oct 3, 2015
    aea1f8a
  4. smebberson commented on Oct 5, 2015

    @smebberson

    @zcbenz, Seeing as though #1806 has been merged, but only fixes Windows. Should this be reopened?

  5. reopened this on Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions