Skip to content

Commit

Permalink
[maps] fix blank screen when switching to Full Screen
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Nov 8, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent ed9956d commit e88a4a9
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x-pack/plugins/maps/public/_main.scss
Original file line number Diff line number Diff line change
@@ -10,6 +10,11 @@
overflow: hidden;
}

.mapFullScreen {
// sass-lint:disable no-important
height: 100vh !important;
}

#react-maps-root {
flex-grow: 1;
display: flex;
5 changes: 5 additions & 0 deletions x-pack/test/functional/apps/maps/group1/full_screen_mode.js
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ export default function ({ getService, getPageObjects }) {
const PageObjects = getPageObjects(['maps', 'common']);
const retry = getService('retry');
const security = getService('security');
const testSubjects = getService('testSubjects');

describe('maps full screen mode', () => {
before(async () => {
@@ -38,6 +39,10 @@ export default function ({ getService, getPageObjects }) {
});
});

it('layer control is visible', async () => {
expect(await testSubjects.isDisplayed('addLayerButton')).to.be(true);
});

it('displays exit full screen logo button', async () => {
const exists = await PageObjects.maps.exitFullScreenLogoButtonExists();
expect(exists).to.be(true);

0 comments on commit e88a4a9

Please sign in to comment.