From 32dc78abd7aaacf8e334b886a4cb4fd64ae1e015 Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Mon, 14 Mar 2016 12:37:10 +0300 Subject: [PATCH] PY-18755 IPython notebook: Changing style works only after closing the editor update cell type on click, do not update scroll position --- .../src/org/jetbrains/plugins/ipnb/editor/IpnbFileEditor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ipnb/src/org/jetbrains/plugins/ipnb/editor/IpnbFileEditor.java b/python/ipnb/src/org/jetbrains/plugins/ipnb/editor/IpnbFileEditor.java index 89a5cd0a3f37..92ed37a2e624 100644 --- a/python/ipnb/src/org/jetbrains/plugins/ipnb/editor/IpnbFileEditor.java +++ b/python/ipnb/src/org/jetbrains/plugins/ipnb/editor/IpnbFileEditor.java @@ -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); } });