diff --git a/ComposeWindow.js b/ComposeWindow.js
index 44cee41..b1576f2 100644
--- a/ComposeWindow.js
+++ b/ComposeWindow.js
@@ -27,8 +27,8 @@ var ComposeWindow = React.createClass({
@@ -91,4 +91,4 @@ var MessageView = React.createClass({
}
});
-module.exports = StoreListener(MessageView, (data) => { return { quickReply: data.quickReply, msg: data.msg }; });
+module.exports = StoreListener(MessageView, (data) => { return { layout: data.layout, quickReply: data.quickReply, msg: data.msg }; });
diff --git a/mail.js b/mail.js
index 69b06df..88f296f 100644
--- a/mail.js
+++ b/mail.js
@@ -72,51 +72,6 @@ var AllTabs = StoreListener(TabPanel, function(data)
] }
});
-/*React.createClass({
- componentDidMount: function()
- {
- Store.on('layout', this.setLayout);
- },
- componentWillUnmount: function()
- {
- Store.un('layout', this.setLayout);
- },
- setLayout: function()
- {
- var oldLayout = this.state.layout;
- this.setState({ layout: Store.layout });
- window.scrollBy(0, 0);
- var self = this;
- requestAnimationFrame(function()
- {
- var btn;
- if (oldLayout == 'message-on-right' &&
- Store.layout != 'message-on-right')
- {
- btn = self.refs.list.refs.setBtn;
- }
- else if (oldLayout != 'message-on-right' &&
- Store.layout == 'message-on-right')
- {
- btn = self.refs.view.refs.setBtn;
- }
- if (btn)
- {
- btn.setState({ pressed: false });
- btn.toggle();
- }
- });
- },
- getInitialState: function()
- {
- return { layout: Store.layout };
- },
- render: function()
- {
- return React.createElement();
- }
-});*/
-
ReactDOM.render(
{AllDropdowns()}