This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #300 from ckeditor/t/297
Feature: Replaced `StickyToolbarView` with a generic `StickyPanelView`. Closes #297. BREAKING CHANGE: The `StickyToolbarView` and corresponding CSS `.ck-sticky-panel` classes are no longer available. `StickyPanelView` + `ToolbarView` combo should be used instead.
- Loading branch information
Showing
10 changed files
with
145 additions
and
121 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
*/ | ||
|
||
import testUtils from '../../../_utils/utils'; | ||
import StickyPanelView from '../../../../src/panel/sticky/stickypanelview'; | ||
|
||
import '@ckeditor/ckeditor5-theme-lark/theme/theme.scss'; | ||
|
||
const ui = testUtils.createTestUIView( { | ||
stickyToTheTop: '.ck-sticky_to-the-top .ck-editor__top', | ||
stickyToTheBox: '.ck-sticky_to-the-box .ck-editor__top' | ||
} ); | ||
|
||
createStickyPanel( ui.stickyToTheTop ); | ||
const stickyToTheBoxTPanel = createStickyPanel( ui.stickyToTheBox ); | ||
|
||
stickyToTheBoxTPanel.viewportTopOffset = 100; | ||
|
||
function createStickyPanel( collection ) { | ||
const panel = new StickyPanelView(); | ||
|
||
panel.limiterElement = collection._parentElement.parentNode; | ||
|
||
collection.add( panel ); | ||
panel.isActive = true; | ||
|
||
return panel; | ||
} |
This file contains 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.