From 5c33f75bdfb2f7c1a2f125f57a9baf2b9d385751 Mon Sep 17 00:00:00 2001 From: jlstevens Date: Thu, 20 Jul 2017 21:42:28 +0100 Subject: [PATCH] Fixed clone on NdLayout to propagate cols properly --- holoviews/core/layout.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/holoviews/core/layout.py b/holoviews/core/layout.py index ae6bada6ec..7afa715780 100644 --- a/holoviews/core/layout.py +++ b/holoviews/core/layout.py @@ -339,6 +339,18 @@ def last(self): return self.clone(last_items) + def clone(self, *args, **overrides): + """ + Clone method for NdLayout matches Dimensioned.clone except the + display mode is also propagated. + """ + clone = super(NdLayout, self).clone(*args, **overrides) + clone._max_cols = self._max_cols + clone.id = self.id + return clone + + + # To be removed after 1.3.0 class Warning(param.Parameterized): pass collate_deprecation = Warning(name='Deprecation Warning')