PY-18755 IPython notebook: Changing style works only after closing the editor

update cell type on click, do not update scroll position
This commit is contained in:
Ekaterina Tuzova
2016-03-14 12:40:10 +03:00
parent 961e3e54e8
commit 32dc78abd7
@@ -332,8 +332,9 @@ public class IpnbFileEditor extends UserDataHolderBase implements FileEditor {
new CellSelectionListener() {
@Override
public void selectionChanged(@NotNull IpnbPanel ipnbPanel, boolean byMouse) {
if (myCellTypeCombo == null || byMouse) return;
if (myCellTypeCombo == null) return;
updateCellTypeCombo(ipnbPanel);
if (byMouse) return;
updateScrollPosition(ipnbPanel);
}
});